ILIAS  release_8 Revision v8.24
CardinalDimension.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
23
28{
29 public function __construct(array $value_labels = [])
30 {
31 $this->value_labels = $value_labels;
32 }
33
34 public function checkValue($value): void
35 {
36 if (!is_null($value) && !is_numeric($value)) {
37 throw new \InvalidArgumentException(
38 "Expected parameter to be numeric or null. '$value' is given."
39 );
40 }
41 }
42}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...