trait HasState (View source)

Properties

protected $defaultState
protected Closure|null $getStateUsing

Methods

getStateUsing(Closure|null $callback)

No description

default($state)

No description

getDefaultState()

No description

getState()

No description

getStateFromRecord()

No description

mutateArrayState(array $state)

No description

Details

HasState getStateUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasState

HasState default($state)

No description

Parameters

$state

Return Value

HasState

getDefaultState()

No description

getState()

No description

protected getStateFromRecord()

No description

protected mutateArrayState(array $state)

No description

Parameters

array $state