3 declare(strict_types=1);
    40         foreach ($dimensions as $name => $dimension) {
    41             if (!is_string($name)) {
    42                 throw new \InvalidArgumentException(
    43                     "Expected array key to be a string, '$name' is given."    47                 throw new \InvalidArgumentException(
    48                     "Expected array value to be an instance of Dimension, '$dimension' is given."    65             throw new \ArgumentCountError(
    66                 "The number of the passed values does not match with the number of Dimensions."    76     public function withPoint(
string $measurement_item_label, array $values): self
    80         foreach ($values as $dimension_name => $value) {
    82             $dimension->checkValue($value);
    86         $clone->points[$measurement_item_label] = $values;
    98         $points_restructured = [];
    99         foreach ($this->
getPoints() as $measurement_item_label => $points_for_dimensions) {
   100             foreach ($points_for_dimensions as $dimension_name => $point) {
   101                 $points_restructured[$dimension_name][$measurement_item_label] = $point;
   105         return $points_restructured;
   117         foreach ($values as $dimension_name => $value) {
   118             if (!is_string($value) && !is_null($value)) {
   119                 throw new \InvalidArgumentException(
   120                     "Expected array value to be a string or null, '$value' is given."   125         $clone = clone $this;
   126         $clone->alternative_information[$measurement_item_label] = $values;
   138         $alternative_information_restructured = [];
   140             foreach ($alternative_information_for_dimensions as $dimension_name => $alternative_info) {
   141                 $alternative_information_restructured[$dimension_name][$measurement_item_label] = $alternative_info;
   145         return $alternative_information_restructured;
   153         $clone = clone $this;
   155         $clone->alternative_information = [];
   170             throw new \RuntimeException(
   171                 "Dataset must not be empty."   177         foreach ($dimension_points as $point) {
   178             if (is_array($point)) {
   179                 foreach ($point as $p) {
   180                     if (is_null($min) || $p < $min) {
   184             } elseif (is_null($min) || !is_null($point) && $point < $min) {
   195             throw new \RuntimeException(
   196                 "Dataset must not be empty."   202         foreach ($dimension_points as $point) {
   203             if (is_array($point)) {
   204                 foreach ($point as $p) {
   205                     if (is_null($max) || $p > $max) {
   209             } elseif (is_null($max) || !is_null($point) && $point > $max) {
 withResetDataset()
Returns an empty Dataset clone. 
 
checkDimensionCongruenceForValues(array $values)
 
getMaxValueForDimension(string $dimension_name)
 
array $alternative_information
 
__construct(array $dimensions)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getMinValueForDimension(string $dimension_name)
 
getAlternativeInformationPerDimension()
 
withAlternativeInformation(string $measurement_item_label, array $values)
 
withPoint(string $measurement_item_label, array $values)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getAlternativeInformation()