assertInteger() public static method

public static assertInteger ( boolean $value, string $callee, integer $parameterPosition )
$value boolean
$callee string
$parameterPosition integer
 public function __construct($start, $amount)
 {
     InvalidArgumentException::assertIntegerGreaterThanOrEqual($start, 0, __METHOD__, 1);
     InvalidArgumentException::assertInteger($amount, __METHOD__, 2);
     $this->start = $start;
     $this->amount = $amount;
 }
/**
 * Returns an infinite, traversable sequence that linearly grows by given amount
 *
 * @param integer $start
 * @param integer $amount
 * @return Traversable
 */
function sequence_linear($start, $amount)
{
    InvalidArgumentException::assertIntegerGreaterThanOrEqual($start, 0, __FUNCTION__, 1);
    InvalidArgumentException::assertInteger($amount, __FUNCTION__, 2);
    return new LinearSequence($start, $amount);
}