protected function checkValue($value, $condition) {
        list($filterType, $valueToCheck) = $condition;

        switch ($filterType) {
            case self::FILTER_TYPE_EQ:
                return $valueToCheck == $value;

            case self::FILTER_TYPE_NEQ:
                return $valueToCheck != $value;

            case self::FILTER_TYPE_LIKE:
                return strpos($value, $valueToCheck) !== false;

            default :
                throw new InvalidFilterTypeException("Filter type '$filterType' is unknown'");
        }
    }
protected function checkValue($value, $condition) {
        list($filterType, $valueToCheck) = $condition;

        switch ($filterType) {
            case self::FILTER_TYPE_EQ:
                return $valueToCheck == $value;

            case self::FILTER_TYPE_NEQ:
                return $valueToCheck != $value;

            case self::FILTER_TYPE_LIKE:
                return strpos($value, $valueToCheck) !== false;

            default :
                throw new InvalidFilterTypeException("Filter type '$filterType' is unknown'");
        }
    }
protected function checkValue ( $ value , $ condition ) { list ( $ filterType , $ valueToCheck ) = $ condition ; switch ( $ filterType ) { case self :: FILTER_TYPE_EQ : return $ valueToCheck == $ value ; case self :: FILTER_TYPE_NEQ : return $ valueToCheck != $ value ; case self :: FILTER_TYPE_LIKE : return strpos ( $ value , $ valueToCheck ) !== false ; default : throw new InvalidFilterTypeException ( "Filter type '$filterType' is unknown'" ) ; } }
Check if value respects condition.

@param string $value
@param $condition

@return boolean|null
@throws InvalidFilterTypeException
Check if value respects condition .