3 declare(strict_types=1);
159 if (is_array($classNameOrArray)) {
160 if (2 !== count($classNameOrArray)) {
175 return $this->
toNew([$this->dataFactory, $dataType]);
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
recordOf(array $transformations)
Returns an object that allows to transform the values of an associative array with the given associat...
__construct(Factory $dataFactory)
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...
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.