19 declare(strict_types=1);
43 private readonly
Factory $dataFactory,
160 if (is_array($classNameOrArray)) {
161 if (2 !== count($classNameOrArray)) {
176 return $this->
toNew([$this->dataFactory, $dataType]);
193 return new InArrayTransformation($valid_members, $this->
language);
inArray(array $valid_members)
Validates that the value to be transformed is in the set given to this transformation.
toNew($classNameOrArray)
Returns either an transformation object to create objects of an existing class, with variations of co...
float()
Returns an object that allows to transform a value to a float value.
recordOf(array $transformations)
Returns an object that allows to transform the values of an associative array with the given associat...
__construct(private readonly Factory $dataFactory, private readonly Language $language)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
int()
Returns an object that allows to transform a value to an integer value.
dictOf(Transformation $transformation)
Returns an object that allows to transform the values of an associative array with the given transfor...
string()
Returns an object that allows to transform a value to a string value.
listOf(Transformation $transformation)
Returns an object that allows to transform an value in a given array with the given transformation ob...
language()
description: > Example for rendring a language glyph.
tupleOf(array $transformation)
Returns an object that allows to transform the values of an array with the given array of transformat...
bool()
Returns an object that allows to transform a value to a boolean value.