You are here

public function PHP_Token_Stream::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-token-stream/src/Token/Stream.php \PHP_Token_Stream::__toString()

Return value

string

File

vendor/phpunit/php-token-stream/src/Token/Stream.php, line 132

Class

PHP_Token_Stream
A stream of PHP tokens.

Code

public function __toString() {
  $buffer = '';
  foreach ($this as $token) {
    $buffer .= $token;
  }
  return $buffer;
}