trait HasState (View source)

Properties

protected string|null $statePath
Model|null $record
protected array<string,mixed> $state
protected string $cachedAbsoluteStatePath

Methods

state(array|null $state)

No description

statePath(string|null $path)

No description

record(Model|null $record)

No description

string
getStatePath(bool $isAbsolute = true)

No description

Model|array
getState()

No description

Model|null
getRecord()

No description

void
flushCachedAbsoluteStatePath()

No description

Details

HasState state(array|null $state)

No description

Parameters

array|null $state

Return Value

HasState

HasState statePath(string|null $path)

No description

Parameters

string|null $path

Return Value

HasState

HasState record(Model|null $record)

No description

Parameters

Model|null $record

Return Value

HasState

string getStatePath(bool $isAbsolute = true)

No description

Parameters

bool $isAbsolute

Return Value

string

Model|array getState()

No description

Return Value

Model|array

| array<string, mixed>

Model|null getRecord()

No description

Return Value

Model|null

protected void flushCachedAbsoluteStatePath()

No description

Return Value

void