2 declare(strict_types=1);
165 if (is_array($classNameOrArray)) {
166 if (2 !== count($classNameOrArray)) {
167 throw new \InvalidArgumentException(
'The array MUST contain exactly two elements');
181 return $this->
toNew(array($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.
string()
Returns an object that allows to transform a value to a string value.
Class ChatMainBarProvider .
__construct(\ILIAS\Data\Factory $dataFactory)
recordOf(array $transformations)
Returns an object that allows to transform the values of an associative array with the given associat...
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...
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.