public function Twig_SimpleTest::__construct in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/SimpleTest.php \Twig_SimpleTest::__construct()
File
- vendor/
Twig/ SimpleTest.php, line 23
Class
- Twig_SimpleTest
- Represents a template test.
Code
public function __construct($name, $callable, array $options = array()) {
$this->name = $name;
$this->callable = $callable;
$this->options = array_merge(array(
'is_variadic' => false,
'node_class' => 'Twig_Node_Expression_Test',
'deprecated' => false,
'alternative' => null,
), $options);
}