ReflectionPropertyAccessor
Table of Contents
Methods
-
createWithProperties()
: object
-
getProperty()
: mixed
-
setProperties()
: mixed
-
setPropertiesForClass()
: object|null
createWithProperties()
public
createWithProperties(string $class, array<string|int, mixed> $data) : object
Parameters
-
$class
: string
-
-
$data
: array<string|int, mixed>
-
-
throws
-
ReflectionException
getProperty()
public
getProperty(object $obj, string $field) : mixed
Parameters
-
$obj
: object
-
-
$field
: string
-
-
throws
-
ReflectionException
setProperties()
public
setProperties(object|null $obj, array<string|int, mixed> $data) : mixed
Parameters
-
$obj
: object|null
-
-
$data
: array<string|int, mixed>
-
-
throws
-
ReflectionException
setPropertiesForClass()
private
setPropertiesForClass(object|null $obj, string $class, array<string|int, mixed> $data) : object|null
Parameters
-
$obj
: object|null
-
-
$class
: string
-
-
$data
: array<string|int, mixed>
-
-
throws
-
ReflectionException
Return values
object|null