HasAttributes
trait HasAttributes
Methods
Return the value of the method get{Name}Attribute
.
Set the value of the method set{Name}Attribute
.
Extend the __isset method to check for the method get{Name}Attribute
.
Extend the __unset method to check for the method get{Name}Attribute
.
Determine if a get mutator exists for an attribute.
Get the value of an attribute using its mutator.
Determine if a set mutator exists for an attribute.
Set the value of an attribute using its mutator.
Details
at line 16
mixed
__get(string $name)
Return the value of the method get{Name}Attribute
.
at line 32
__set(string $name, mixed $value)
Set the value of the method set{Name}Attribute
.
at line 45
__isset(string $name)
Extend the __isset method to check for the method get{Name}Attribute
.
at line 58
__unset(string $name)
Extend the __unset method to check for the method get{Name}Attribute
.
at line 72
bool
hasGetMutator(string $key)
Determine if a get mutator exists for an attribute.
at line 83
protected mixed
mutateAttribute(string $key)
Get the value of an attribute using its mutator.
at line 94
bool
hasSetMutator(string $key)
Determine if a set mutator exists for an attribute.
at line 106
protected mixed
setMutatedAttributeValue(string $key, mixed $value)
Set the value of an attribute using its mutator.