Definition at line 25 of file DMap.php.
◆ __construct()
◆ getKeyType()
ILIAS\Data\Description\DMap::getKeyType |
( |
| ) |
|
Definition at line 72 of file DMap.php.
74 return $this->key_type;
◆ getPrimitiveRepresentation()
ILIAS\Data\Description\DMap::getPrimitiveRepresentation |
( |
mixed |
$data | ) |
|
Definition at line 37 of file DMap.php.
39 if (!is_array(
$data)) {
40 return fn() => yield
"Expected an array.";
46 foreach (
$data as $k => $v) {
47 $key = $this->key_type->getPrimitiveRepresentation($k);
48 $value = $this->value_type->getPrimitiveRepresentation($v);
50 $key_is_error = $key instanceof \Closure;
51 $value_is_error = $value instanceof \Closure;
56 if ($value_is_error) {
60 if (!$key_is_error && !$value_is_error) {
66 return $this->mergeErrors($errors);
◆ getValueType()
ILIAS\Data\Description\DMap::getValueType |
( |
| ) |
|
Definition at line 77 of file DMap.php.
79 return $this->value_type;
The documentation for this class was generated from the following file:
- components/ILIAS/Data/src/Description/DMap.php