1<?
php declare(strict_types=1);
34 throw new \InvalidArgumentException(
"Start must be a positive number (or 0)", 1);
41 throw new \InvalidArgumentException(
"Length must be larger than 1", 1);
An exception for terminatinating execution or to throw for unit testing.
A simple class to express a naive range of whole positive numbers.
__construct(int $start, int $length)