protected function checkParsedMark($mark, $value)
    {
        if (strpos($mark, '!') === 0) {
            throw new InvalidArgumentException("Leading ! cannot be used in associative marks.");
        }

        if (!is_bool($value) && !is_string($value)) {
            throw new UnsupportedParameterException("This MatchingListener can only match boolean and strings. You added for $mark a value of " . Type::of($value));
        }
    }
protected function checkParsedMark($mark, $value)
    {
        if (strpos($mark, '!') === 0) {
            throw new InvalidArgumentException("Leading ! cannot be used in associative marks.");
        }

        if (!is_bool($value) && !is_string($value)) {
            throw new UnsupportedParameterException("This MatchingListener can only match boolean and strings. You added for $mark a value of " . Type::of($value));
        }
    }
protected function checkParsedMark ( $ mark , $ value ) { if ( strpos ( $ mark , '!' ) === 0 ) { throw new InvalidArgumentException ( "Leading ! cannot be used in associative marks." ) ; } if ( ! is_bool ( $ value ) && ! is_string ( $ value ) ) { throw new UnsupportedParameterException ( "This MatchingListener can only match boolean and strings. You added for $mark a value of " . Type :: of ( $ value ) ) ; } }
Does some checks if the passed filter value is valid.

@param string $mark
@param mixed  $value
Does some checks if the passed filter value is valid .