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 29
PropertiesAware setProperties(array $props)

Replaces all properties.

Parameters

array $props

Return Value

PropertiesAware

at line 42
array getProperties()

No description

Return Value

array

at line 48
Property getProperty(string $name)

No description

Parameters

string $name

Return Value

Property

at line 58
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 70
PropertiesAware removeProperty(string $name)

No description

Parameters

string $name

without $

Return Value

PropertiesAware

at line 77
bool hasProperty(string $name)

No description

Parameters

string $name

Return Value

bool