You are here

public function Twig_Test_Function::__construct in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Test/Function.php \Twig_Test_Function::__construct()

Overrides Twig_Test::__construct

File

vendor/Twig/Test/Function.php, line 25

Class

Twig_Test_Function
Represents a function template test.

Code

public function __construct($function, array $options = array()) {
  $options['callable'] = $function;
  parent::__construct($options);
  $this->function = $function;
}