src/Constraints/Constraint.php
protected function compare($a, $b)
    {
        switch ($this->operator) {
            case '=':
            case '==': return $a == $b;
            case '!=': return $a != $b;
            case '<':  return $a < $b;
            case '>':  return $a > $b;
            case '<=': return $a <= $b;
            case '>=': return $a >= $b;
        }
    }
protected function compare($a, $b)
    {
        switch ($this->operator) {
            case '=':
            case '==': return $a == $b;
            case '!=': return $a != $b;
            case '<':  return $a < $b;
            case '>':  return $a > $b;
            case '<=': return $a <= $b;
            case '>=': return $a >= $b;
        }
    }
protected function compare ( $ a , $ b ) { switch ( $ this -> operator ) { case '=' : case '==' : return $ a == $ b ; case '!=' : return $ a != $ b ; case '<' : return $ a < $ b ; case '>' : return $ a > $ b ; case '<=' : return $ a <= $ b ; case '>=' : return $ a >= $ b ; } }
Compare the two values by the constraint's operator.

@param  mixed  $a
@param  mixed  $b
@return bool
Compare the two values by the constraint s operator .