public static function assertInteger($value, $callee, $parameterPosition)
{
if (!is_integer($value)) {
throw new static(sprintf('%s() expects parameter %d to be integer', $callee, $parameterPosition));
}
}
public function __construct($start, $amount) { InvalidArgumentException::assertIntegerGreaterThanOrEqual($start, 0, __METHOD__, 1); InvalidArgumentException::assertInteger($amount, __METHOD__, 2); $this->start = $start; $this->amount = $amount; }