name = $name; $this->type = null === $type ? Twig_Token::NAME_TYPE : $type; } public function __toString() { return $this->name; } public function parse(Twig_Token $token) { $this->parser->getStream()->expect($this->type, $this->name); return $this->name; } public function getType() { return $this->type; } }