trait CanBeReadOnly (View source)

Properties

protected bool|Closure $isReadOnly

Methods

readOnly(bool|Closure $condition = true)

No description

readOnlyOn(string|array $operations)

No description

bool
isReadOnly()

No description

Details

CanBeReadOnly readOnly(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeReadOnly

CanBeReadOnly readOnlyOn(string|array $operations)

No description

Parameters

string|array $operations

Return Value

CanBeReadOnly

bool isReadOnly()

No description

Return Value

bool