You are here

public function Twig_Test_Method::__construct in Translation template extractor 7.3

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

Overrides Twig_Test::__construct

File

vendor/Twig/Test/Method.php, line 26

Class

Twig_Test_Method
Represents a method template test.

Code

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