Flow\Parser::__construct PHP Method

__construct() public method

public __construct ( TokenStream $stream )
$stream TokenStream
    public function __construct(TokenStream $stream)
    {
        $this->stream = $stream;
        $this->extends = null;
        $this->blocks = array();
        $this->currentBlock = array();
        $this->tags = array('if' => 'parseIf', 'for' => 'parseFor', 'break' => 'parseBreak', 'continue' => 'parseContinue', 'extends' => 'parseExtends', 'set' => 'parseSet', 'block' => 'parseBlock', 'parent' => 'parseParent', 'autoescape' => 'parseAutoEscape', 'endautoescape' => 'parseEndAutoEscape', 'macro' => 'parseMacro', 'import' => 'parseImport', 'include' => 'parseInclude');
        $this->inForLoop = 0;
        $this->macros = array();
        $this->inMacro = false;
        $this->imports = array();
        $this->autoEscape = array(false);
    }