public function Twig_Test_Method::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Test/Method.php \Twig_Test_Method::__construct()
Overrides Twig_Test::__construct
File
- vendor/
twig/ twig/ lib/ 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;
}