trait AttributeTrait

Methods

addAttributes(array $attributes)

Attach attributes to this object.

addAttribute(string $attribute, mixed $value)

Attach a single attribute to this object.

array
attributes()

Return the list of attributes for this object.

Details

at line 32
addAttributes(array $attributes)

Attach attributes to this object.

Parameters

array $attributes Attributes in the form of $attribute => $value

at line 45
addAttribute(string $attribute, mixed $value)

Attach a single attribute to this object.

Parameters

string $attribute The name of the attribute.
mixed $value The value of the attribute. Will be cast to a string

at line 55
array attributes()

Return the list of attributes for this object.

Return Value

array