src/LdapTools/DomainConfiguration.php
protected function validateInteger($value, $name)
    {
        if (filter_var($value, FILTER_VALIDATE_INT) === false) {
            throw new InvalidArgumentException(sprintf("The %s should be an integer.", $name));
        }

        return $value;
    }
protected function validateInteger($value, $name)
    {
        if (filter_var($value, FILTER_VALIDATE_INT) === false) {
            throw new InvalidArgumentException(sprintf("The %s should be an integer.", $name));
        }

        return $value;
    }
protected function validateInteger ( $ value , $ name ) { if ( filter_var ( $ value , FILTER_VALIDATE_INT ) === false ) { throw new InvalidArgumentException ( sprintf ( "The %s should be an integer." , $ name ) ) ; } return $ value ; }
This is a helper since an integer could simply be passed as a string, which is still valid.

@param mixed $value
@param string $name
@return int
This is a helper since an integer could simply be passed as a string which is still valid .