Definition at line 25 of file DList.php.
◆ __construct()
◆ getPrimitiveRepresentation()
ILIAS\Data\Description\DList::getPrimitiveRepresentation |
( |
mixed |
$data | ) |
|
Definition at line 36 of file DList.php.
38 if (!is_array(
$data)) {
39 return fn() => yield
"Expected an array.";
45 foreach (
$data as $v) {
46 $value = $this->value_type->getPrimitiveRepresentation($v);
48 if ($value instanceof \
Closure) {
56 return $this->mergeErrors($errors);
◆ getValueType()
ILIAS\Data\Description\DList::getValueType |
( |
| ) |
|
Definition at line 62 of file DList.php.
64 return $this->value_type;
The documentation for this class was generated from the following file:
- components/ILIAS/Data/src/Description/DList.php