Attribute
class Attribute (View source)
Properties
callable | $get | The attribute accessor. |
|
callable | $set | The attribute mutator. |
|
bool | $withObjectCaching | Indicates if caching of objects is enabled for this attribute. |
Methods
void
__construct(callable $get = null, callable $set = null)
Create a new attribute accessor / mutator.
withoutObjectCaching()
Disable object caching for the attribute.
Details
void
__construct(callable $get = null, callable $set = null)
Create a new attribute accessor / mutator.
static Attribute
get(callable $get)
Create a new attribute accessor.
static Attribute
set(callable $set)
Create a new attribute mutator.
Attribute
withoutObjectCaching()
Disable object caching for the attribute.