HasState
trait HasState (View source)
Properties
protected string|null | $statePath | ||
protected string | $cachedAbsoluteStatePath |
Methods
void
callAfterStateHydrated()
No description
bool
callAfterStateUpdated(string $path)
No description
void
callBeforeStateDehydrated()
No description
array
dehydrateState(array $state = [], bool $isDehydrated = true)
No description
array
mutateDehydratedState(array $state = [])
No description
array
mutateStateForValidation(array $state = [])
No description
fill(array|null $state = null, bool $andCallHydrationHooks = true, bool $andFillStateWithNull = true)
No description
void
hydrateState(array|null $hydratedDefaultState, bool $andCallHydrationHooks = true)
No description
void
fillStateWithNull()
No description
array
Arrayable
getRawState()
No description
array
getStateOnly(array $keys, bool $shouldCallHooksBefore = true)
No description
array
getStateExcept(array $keys, bool $shouldCallHooksBefore = true)
No description
string
getStatePath(bool $isAbsolute = true)
No description
void
flushCachedAbsoluteStatePath()
No description
Details
void
callAfterStateHydrated()
No description
bool
callAfterStateUpdated(string $path)
No description
void
callBeforeStateDehydrated()
No description
array
dehydrateState(array $state = [], bool $isDehydrated = true)
No description
array
mutateDehydratedState(array $state = [])
No description
array
mutateStateForValidation(array $state = [])
No description
HasState
fill(array|null $state = null, bool $andCallHydrationHooks = true, bool $andFillStateWithNull = true)
No description
void
hydrateState(array|null $hydratedDefaultState, bool $andCallHydrationHooks = true)
No description
void
fillStateWithNull()
No description
HasState
statePath(string|null $path)
No description
array
getState(bool $shouldCallHooksBefore = true, Closure|null $afterValidate = null)
No description
Arrayable
getRawState()
No description
array
getStateOnly(array $keys, bool $shouldCallHooksBefore = true)
No description
array
getStateExcept(array $keys, bool $shouldCallHooksBefore = true)
No description
string
getStatePath(bool $isAbsolute = true)
No description
protected void
flushCachedAbsoluteStatePath()
No description