trait Base

Methods

default($value)

No description

required(bool $state = true)

No description

before(callable $handler)

No description

castTo(string $type)

No description

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

No description

completeDefault(Context $context)

No description

doNormalize($value, Context $context)

No description

Details

at line 37
Base default($value)

Parameters

$value

Return Value

Base

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

Parameters

bool $state

Return Value

Base

at line 51
Base before(callable $handler)

Parameters

callable $handler

Return Value

Base

at line 58
Base castTo(string $type)

Parameters

string $type

Return Value

Base

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

Parameters

callable $handler
string $description

Return Value

Base

at line 72
completeDefault(Context $context)

Parameters

Context $context

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

Parameters

$value
Context $context