src/SweetORM/Database/Query.php
private function validValue($value, $operator)
    {
        if (! $this->validOperator($operator)) {
            return false; // @codeCoverageIgnore
        }

        if ($operator === "IN") {
            // Valid should be an array!
            return is_array($value);
        }
        if ($operator === "IS NOT") {
            return is_null($value);
        }

        return !is_array($value);
    }
private function validValue($value, $operator)
    {
        if (! $this->validOperator($operator)) {
            return false; // @codeCoverageIgnore
        }

        if ($operator === "IN") {
            // Valid should be an array!
            return is_array($value);
        }
        if ($operator === "IS NOT") {
            return is_null($value);
        }

        return !is_array($value);
    }
private function validValue ( $ value , $ operator ) { if ( ! $ this -> validOperator ( $ operator ) ) { return false ; // @codeCoverageIgnore } if ( $ operator === "IN" ) { // Valid should be an array! return is_array ( $ value ) ; } if ( $ operator === "IS NOT" ) { return is_null ( $ value ) ; } return ! is_array ( $ value ) ; }
Validate value for given operator
@param mixed $value
@param string $operator
@return bool
Validate value for given operator