19 declare(strict_types=1);
    44             throw new \InvalidArgumentException(
"Start must be a positive number (or 0)", 1);
    51             throw new \InvalidArgumentException(
"Length must be larger or equal then 0", 1);
    72         if ($this->length === PHP_INT_MAX) {
   100         if ($max > $this->
getEnd()) {
   105             return new self($max, 0);
 
croppedTo(int $max)
This will create a range that is guaranteed to not exceed $max. 
 
__construct(int $start, int $length)
 
A simple class to express a naive range of whole positive numbers. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...