public function greater($num)
    {
        self::mustBeNumeric($num, 'Tested number');

        if(is_object($num)){
            return $this->value > $num->value;
        } else {
            return $this->value > $num;
        }
    }
public function greater($num)
    {
        self::mustBeNumeric($num, 'Tested number');

        if(is_object($num)){
            return $this->value > $num->value;
        } else {
            return $this->value > $num;
        }
    }
public function greater ( $ num ) { self :: mustBeNumeric ( $ num , 'Tested number' ) ; if ( is_object ( $ num ) ) { return $ this -> value > $ num -> value ; } else { return $ this -> value > $ num ; } }
Tests whether current number is greater than given one.

This is equivalent of `$n > 3`. For example:

$n = new N(M_PI);
$n->greater(2); // true
$n->greater(4); // false

@see N::gt() An alias
@param  mixed   $num N or numeric value.
@return boolean
@throws \InvalidArgumentException If argument is not numeric-like value
Tests whether current number is greater than given one .