19 declare(strict_types=1);
    46             throw new \InvalidArgumentException(
"Start must be a positive number (or 0)", 1);
    53             throw new \InvalidArgumentException(
"Length must be larger or equal then 0", 1);
    78         if ($this->length === PHP_INT_MAX) {
   106         if ($max > $this->
getEnd()) {
   111             return new self($max, 0);
 
getEnd()
getEnd will return the (excluded) endpoint. 
 
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 range of whole positive numbers. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...