Documentation

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
author

DeviceAtlas Limited

Table of Contents

$inputs  : array<string, Input>
$propertyMappingSources  : array<string, PropertyMappingSource>
__construct()  : mixed
InputSanitiser constructor.
sanitise()  : string|null

Properties

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
Parameters
$key :
$value :
Return values
string|null

Search results