trait Base

internal  
 

Methods

default($value)

No description

required(bool $state = true)

No description

before(callable $handler)

No description

castTo(string $type)

No description

transform(callable $handler)

No description

assert(callable $handler, string|null $description = null)

No description

deprecated(string $message = 'The item %path% is deprecated.')

Marks as deprecated

completeDefault(Context $context)

No description

doNormalize($value, Context $context)

No description

Details

at line 38
Base default($value)

No description

Parameters

$value

Return Value

Base

at line 45
Base required(bool $state = true)

No description

Parameters

bool $state

Return Value

Base

at line 52
Base before(callable $handler)

No description

Parameters

callable $handler

Return Value

Base

at line 59
Base castTo(string $type)

No description

Parameters

string $type

Return Value

Base

at line 65
Base transform(callable $handler)

No description

Parameters

callable $handler

Return Value

Base

at line 72
Base assert(callable $handler, string|null $description = null)

No description

Parameters

callable $handler
string|null $description

Return Value

Base

at line 89
Base deprecated(string $message = 'The item %path% is deprecated.')

Marks as deprecated

Parameters

string $message

Return Value

Base

at line 96
completeDefault(Context $context)

No description

Parameters

Context $context

at line 110
doNormalize($value, Context $context)

No description

Parameters

$value
Context $context