HumHub Documentation (unofficial)

ReflectionPropertyAccessor
in package

Table of Contents

Methods

createWithProperties()  : object
getProperty()  : mixed
setProperties()  : mixed
setPropertiesForClass()  : object|null

Methods

createWithProperties()

public createWithProperties(string $class, array<string|int, mixed> $data) : object
Parameters
$class : string
$data : array<string|int, mixed>
Tags
throws
ReflectionException
Return values
object

getProperty()

public getProperty(object $obj, string $field) : mixed
Parameters
$obj : object
$field : string
Tags
throws
ReflectionException

setProperties()

public setProperties(object|null $obj, array<string|int, mixed> $data) : mixed
Parameters
$obj : object|null
$data : array<string|int, mixed>
Tags
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>
Tags
throws
ReflectionException
Return values
object|null

        
On this page

Search results