TokenParserInterface
in
Interface implemented by token parsers.
Tags
Table of Contents
Methods
- getTag() : string
- Gets the tag name associated with this token parser.
- parse() : Node
- Parses a token and returns a node.
- setParser() : void
- Sets the parser associated with this token parser.
Methods
getTag()
Gets the tag name associated with this token parser.
public
getTag() : string
Return values
stringparse()
Parses a token and returns a node.
public
parse(Token $token) : Node
Parameters
- $token : Token
Tags
Return values
NodesetParser()
Sets the parser associated with this token parser.
public
setParser(Parser $parser) : void
Parameters
- $parser : Parser