src/LdapTools/Utilities/ADTimeSpan.php
protected function setAndVerify($value, $interval)
    {
        if (!filter_var($value, FILTER_VALIDATE_INT) && $value != '0') {
            throw new InvalidArgumentException(sprintf("The %s should be an integer.", $interval));
        }
        $this->$interval = $value;
    }
protected function setAndVerify($value, $interval)
    {
        if (!filter_var($value, FILTER_VALIDATE_INT) && $value != '0') {
            throw new InvalidArgumentException(sprintf("The %s should be an integer.", $interval));
        }
        $this->$interval = $value;
    }
protected function setAndVerify ( $ value , $ interval ) { if ( ! filter_var ( $ value , FILTER_VALIDATE_INT ) && $ value != '0' ) { throw new InvalidArgumentException ( sprintf ( "The %s should be an integer." , $ interval ) ) ; } $ this -> $ interval = $ value ; }
Verify the value is an integer and set the correct interval value.

@param int $value
@param string $interval
Verify the value is an integer and set the correct interval value .