trait HasState (View source)

Properties

protected string|null $statePath

Methods

void
callAfterStateHydrated()

No description

bool
callAfterStateUpdated(string $path)

No description

void
callBeforeStateDehydrated()

No description

array
dehydrateState(array $state = [])

No description

array
mutateDehydratedState(array $state = [])

No description

fill(array|null $state = null)

No description

void
hydrateState(array|null $hydratedDefaultState)

No description

void
fillStateWithNull()

No description

statePath(string|null $path)

No description

array
getState(bool $shouldCallHooksBefore = true)

No description

Arrayable
getRawState()

No description

array
getStateOnly(array $keys)

No description

array
getStateExcept(array $keys)

No description

string
getStatePath(bool $isAbsolute = true)

No description

Details

void callAfterStateHydrated()

No description

Return Value

void

bool callAfterStateUpdated(string $path)

No description

Parameters

string $path

Return Value

bool

void callBeforeStateDehydrated()

No description

Return Value

void

array dehydrateState(array $state = [])

No description

Parameters

array $state

Return Value

array

array mutateDehydratedState(array $state = [])

No description

Parameters

array $state

Return Value

array

HasState fill(array|null $state = null)

No description

Parameters

array|null $state

Return Value

HasState

void hydrateState(array|null $hydratedDefaultState)

No description

Parameters

array|null $hydratedDefaultState

Return Value

void

void fillStateWithNull()

No description

Return Value

void

HasState statePath(string|null $path)

No description

Parameters

string|null $path

Return Value

HasState

array getState(bool $shouldCallHooksBefore = true)

No description

Parameters

bool $shouldCallHooksBefore

Return Value

array

Arrayable getRawState()

No description

Return Value

Arrayable

array getStateOnly(array $keys)

No description

Parameters

array $keys

Return Value

array

array getStateExcept(array $keys)

No description

Parameters

array $keys

Return Value

array

string getStatePath(bool $isAbsolute = true)

No description

Parameters

bool $isAbsolute

Return Value

string