\DeviceAtlas\DeviceInputSanitiser

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.

Summary

Methods
Properties
Constants
__construct()
sanitise()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$inputs
$propertyMappingSources
N/A

Properties

$inputs

$inputs : \DeviceAtlas\Device\array<string,

Type

\DeviceAtlas\Device\array

$propertyMappingSources

$propertyMappingSources : \DeviceAtlas\Device\array<string,

Type

\DeviceAtlas\Device\array

Methods

__construct()

__construct(array  $inputs, array  $propertyMappingSources) 

InputSanitiser constructor.

Parameters

array $inputs
array $propertyMappingSources
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

sanitise()

sanitise(  $key,   $value) : string|null

Parameters

$key
$value
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string|null