3 declare(strict_types=1);
34 $this->value_labels = $this->cardinal_dimension->
getLabels();
39 if (is_null($value)) {
42 if (!is_array($value)) {
43 throw new \InvalidArgumentException(
44 "Expected parameter to be null or an array with exactly two numeric parameters. 47 } elseif (count($value) !== 2) {
48 throw new \InvalidArgumentException(
49 "Expected parameter to be an array with exactly two numeric parameters." 52 foreach ($value as $number) {
53 $this->cardinal_dimension->checkValue($number);
CardinalDimension $cardinal_dimension
__construct(CardinalDimension $cardinal_dimension)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...