trait PropertiesAware

internal  
 

Methods

setProperties(array $props)

Replaces all properties.

array
getProperties()

No description

getProperty(string $name)

No description

addProperty(string $name, mixed $value = null, bool $overwrite = false)

Adds a property. If it already exists, throws an exception or overwrites it if $overwrite is true.

removeProperty(string $name)

No description

bool
hasProperty(string $name)

No description

Details

at line 30
PropertiesAware setProperties(array $props)

Replaces all properties.

Parameters

array $props

Return Value

PropertiesAware

at line 43
array getProperties()

No description

Return Value

array

at line 49
Property getProperty(string $name)

No description

Parameters

string $name

Return Value

Property

at line 59
Property addProperty(string $name, mixed $value = null, bool $overwrite = false)

Adds a property. If it already exists, throws an exception or overwrites it if $overwrite is true.

Parameters

string $name

without $

mixed $value
bool $overwrite

Return Value

Property

at line 71
PropertiesAware removeProperty(string $name)

No description

Parameters

string $name

without $

Return Value

PropertiesAware

at line 78
bool hasProperty(string $name)

No description

Parameters

string $name

Return Value

bool