You are here

public function Twig_Token::__toString in Translation template extractor 7.2

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Token.php \Twig_Token::__toString()
  2. 7.3 vendor/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/Token.php, line 57

Class

Twig_Token
Represents a Token.

Code

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