protected function validateTagToken(TagToken $token) : bool
    {
        $tagName = $token->getTagName();
        $tagDef = $this->tagDefs->get($tagName);
        if (!isset($tagDef)) {
            return false;
        }

        return $tagDef->validate($token);
    }
protected function validateTagToken(TagToken $token) : bool
    {
        $tagName = $token->getTagName();
        $tagDef = $this->tagDefs->get($tagName);
        if (!isset($tagDef)) {
            return false;
        }

        return $tagDef->validate($token);
    }
protected function validateTagToken ( TagToken $ token ) : bool { $ tagName = $ token -> getTagName ( ) ; $ tagDef = $ this -> tagDefs -> get ( $ tagName ) ; if ( ! isset ( $ tagDef ) ) { return false ; } return $ tagDef -> validate ( $ token ) ; }
Checks if tag token is valid against tag definition.

Used in tokenize().

@param TagToken $token

@return bool Is tag token valid.
Checks if tag token is valid against tag definition .