Registry
in package
Handles the registering of validators and formatters
Table of Contents
Properties
- $filters : array<string|int, mixed>
- $formatters : array<string|int, mixed>
- $validators : array<string|int, mixed>
Methods
- __construct() : mixed
- getAllValidators() : array<string|int, mixed>
- getFilter() : mixed|null
- getFormatter() : mixed|null
- getValidator() : mixed|null
- setFilter() : void
- setFormatter() : void
- setValidator() : void
- initDefault() : void
Properties
$filters
private
array<string|int, mixed>
$filters
$formatters
private
array<string|int, mixed>
$formatters
$validators
private
array<string|int, mixed>
$validators
Methods
__construct()
public
__construct() : mixed
getAllValidators()
public
getAllValidators() : array<string|int, mixed>
Return values
array<string|int, mixed>getFilter()
public
getFilter([string $key = 'filter' ]) : mixed|null
Parameters
- $key : string = 'filter'
Return values
mixed|nullgetFormatter()
public
getFormatter(string $key) : mixed|null
Parameters
- $key : string
Return values
mixed|nullgetValidator()
public
getValidator(string $key) : mixed|null
Parameters
- $key : string
Return values
mixed|nullsetFilter()
public
setFilter(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
setFormatter()
public
setFormatter(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
setValidator()
public
setValidator(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
initDefault()
private
initDefault() : void