You are here

public function Twig_Token::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Token.php \Twig_Token::__toString()

Returns a string representation of the token.

Return value

string A string representation of the token

File

vendor/twig/twig/lib/Twig/Token.php, line 57

Class

Twig_Token
Represents a Token.

Code

public function __toString() {
  return sprintf('%s(%s)', self::typeToString($this->type, true), $this->value);
}