]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/lib/Twig/SimpleTest.php
225459c9f12982276f9ea2aad81150cb205687f0
4 * This file is part of Twig.
6 * (c) 2010-2012 Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
13 * Represents a template test.
15 * @author Fabien Potencier <fabien@symfony.com>
23 public function __construct($name, $callable, array $options = array())
26 $this->callable
= $callable;
27 $this->options
= array_merge(array(
28 'node_class' => 'Twig_Node_Expression_Test',
32 public function getName()
37 public function getCallable()
39 return $this->callable
;
42 public function getNodeClass()
44 return $this->options
['node_class'];