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