public function operator($left, $operator, $right, $message = '')
    {
        if (!isset(static::$operators[$operator])) {
            throw new \InvalidArgumentException("Invalid operator $operator");
        }
        $this->assertion->setActual($left);

        return $this->assertion->{static::$operators[$operator]}($right, $message);
    }
public function operator($left, $operator, $right, $message = '')
    {
        if (!isset(static::$operators[$operator])) {
            throw new \InvalidArgumentException("Invalid operator $operator");
        }
        $this->assertion->setActual($left);

        return $this->assertion->{static::$operators[$operator]}($right, $message);
    }
public function operator ( $ left , $ operator , $ right , $ message = '' ) { if ( ! isset ( static :: $ operators [ $ operator ] ) ) { throw new \ InvalidArgumentException ( "Invalid operator $operator" ) ; } $ this -> assertion -> setActual ( $ left ) ; return $ this -> assertion -> { static :: $ operators [ $ operator ] } ( $ right , $ message ) ; }
Compare two values using the given operator.

@param mixed  $left
@param string $operator
@param mixed  $right
@param string $message
Compare two values using the given operator .