19 declare(strict_types=1);
33 $this->value_labels = $this->cardinal_dimension->
getLabels();
38 if (is_null($value)) {
41 if (!is_array($value)) {
42 throw new \InvalidArgumentException(
43 "Expected parameter to be null or an array with exactly two numeric parameters. 46 } elseif (count($value) !== 2) {
47 throw new \InvalidArgumentException(
48 "Expected parameter to be an array with exactly two numeric parameters." 51 foreach ($value as $number) {
52 $this->cardinal_dimension->checkValue($number);
CardinalDimension $cardinal_dimension
__construct(CardinalDimension $cardinal_dimension)