InputSanitiser
in package
Sanitises the identifiers inputs by running the trim transformers and then the validators. If the validation fails then null id returned, otherwise the sanitised value is returned.
Tags
Table of Contents
- $inputs : array<string, Input>
- $propertyMappingSources : array<string, PropertyMappingSource>
- __construct() : mixed
- InputSanitiser constructor.
- sanitise() : string|null
Properties
$inputs
private
array<string, Input>
$inputs
$propertyMappingSources
private
array<string, PropertyMappingSource>
$propertyMappingSources
Methods
__construct()
InputSanitiser constructor.
public
__construct(array<string|int, mixed> $inputs, array<string|int, mixed> $propertyMappingSources) : mixed
Parameters
- $inputs : array<string|int, mixed>
- $propertyMappingSources : array<string|int, mixed>
Return values
mixed —sanitise()
public
sanitise( $key, $value) : string|null