src/Where.php
public static function predicate($columns, $operator, $value)
    {
        switch ($operator) {
            case '==':
                return $columns == $value;
            case '=':
            case '===':
                return $columns === $value;
            case '!==':
                return $columns !== $value;
            case '!=':
                return $columns != $value;
            case '<>':
                return $columns <> $value;
            case '<':
                return $columns < $value;
            case '<=':
                return $columns <= $value;
            case '>':
                return $columns > $value;
            case '>=':
                return $columns >= $value;
            case 'in':
                return in_array($columns, $value);
        }

        throw new \Exception("The $operator operator is not supported.");
    }
public static function predicate($columns, $operator, $value)
    {
        switch ($operator) {
            case '==':
                return $columns == $value;
            case '=':
            case '===':
                return $columns === $value;
            case '!==':
                return $columns !== $value;
            case '!=':
                return $columns != $value;
            case '<>':
                return $columns <> $value;
            case '<':
                return $columns < $value;
            case '<=':
                return $columns <= $value;
            case '>':
                return $columns > $value;
            case '>=':
                return $columns >= $value;
            case 'in':
                return in_array($columns, $value);
        }

        throw new \Exception("The $operator operator is not supported.");
    }
public static function predicate ( $ columns , $ operator , $ value ) { switch ( $ operator ) { case '==' : return $ columns == $ value ; case '=' : case '===' : return $ columns === $ value ; case '!==' : return $ columns !== $ value ; case '!=' : return $ columns != $ value ; case '<>' : return $ columns <> $ value ; case '<' : return $ columns < $ value ; case '<=' : return $ columns <= $ value ; case '>' : return $ columns > $ value ; case '>=' : return $ columns >= $ value ; case 'in' : return in_array ( $ columns , $ value ) ; } throw new \ Exception ( "The $operator operator is not supported." ) ; }
Retourne TRUE si la condition est validée.

@param mixed  $columns  Valeur à tester.
@param string $operator Condition à réaliser.
@param mixed  $value    Valeur de comparaison.

@throws \Exception
@return bool
Retourne TRUE si la condition est validée .