public function Twig_TokenStream::__construct

Constructor.

Parameters

array $tokens An array of tokens:

string $filename The name of the filename which tokens are associated with:

File

drupal/core/vendor/twig/twig/lib/Twig/TokenStream.php, line 31

Class

Twig_TokenStream
Represents a token stream.

Code

public function __construct(array $tokens, $filename = null) {
  $this->tokens = $tokens;
  $this->current = 0;
  $this->filename = $filename;
}