You are here

public function Twig_TokenStream::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/TokenStream.php \Twig_TokenStream::__construct()

Constructor.

Parameters

array $tokens An array of tokens:

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

File

vendor/twig/twig/lib/Twig/TokenStream.php, line 30

Class

Twig_TokenStream
Represents a token stream.

Code

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