You are here

public function Twig_SimpleTest::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/SimpleTest.php \Twig_SimpleTest::__construct()

File

vendor/twig/twig/lib/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);
}