trait Mutable

Properties

array $setterMutators array$setterMutators
array $getterMutators array$getterMutators

Methods

static void
bootMutable()

Register hooks for the trait.

getAttributeMutable()

Register hook on getAttribute method.

setAttributeMutable()

Register hook on setAttribute method.

toArrayMutable()

Register hook on toArray method.

boolean
hasGetterMutator(string $key)

Determine whether an attribute has getter mutators defined.

boolean
hasSetterMutator(string $key)

Determine whether an attribute has setter mutators defined.

array
getMutators(string $dir)

Get the array of attribute mutators.

Details

at line 18
static void bootMutable()

Register hooks for the trait.

Return Value

void

at line 32
Closure getAttributeMutable()

Register hook on getAttribute method.

Return Value

Closure

at line 52
Closure setAttributeMutable()

Register hook on setAttribute method.

Return Value

Closure

at line 72
Closure toArrayMutable()

Register hook on toArray method.

Return Value

Closure

at line 104
boolean hasGetterMutator(string $key)

Determine whether an attribute has getter mutators defined.

Parameters

string $key

Return Value

boolean

at line 115
boolean hasSetterMutator(string $key)

Determine whether an attribute has setter mutators defined.

Parameters

string $key

Return Value

boolean

at line 152
array getMutators(string $dir)

Get the array of attribute mutators.

Parameters

string $dir

Return Value

array