You are here

public function Token::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Parser/Token.php \Symfony\Component\CssSelector\Parser\Token::__toString()

Return value

string

File

vendor/symfony/css-selector/Parser/Token.php, line 152

Class

Token
CSS selector token.

Namespace

Symfony\Component\CssSelector\Parser

Code

public function __toString() {
  if ($this->value) {
    return sprintf('<%s "%s" at %s>', $this->type, $this->value, $this->position);
  }
  return sprintf('<%s at %s>', $this->type, $this->position);
}