Dotclear

source: inc/libs/Twig/SimpleTest.php @ 1149:1657e862089c

Revision 1149:1657e862089c, 944 bytes checked in by dsls, 12 years ago (diff)

Fixed unix case-sensitive twig directory

Line 
1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) 2010-2012 Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12/**
13 * Represents a template test.
14 *
15 * @package    twig
16 * @author     Fabien Potencier <fabien@symfony.com>
17 */
18class Twig_SimpleTest
19{
20    protected $name;
21    protected $callable;
22    protected $options;
23
24    public function __construct($name, $callable, array $options = array())
25    {
26        $this->name = $name;
27        $this->callable = $callable;
28        $this->options = array_merge(array(
29            'node_class' => 'Twig_Node_Expression_Test',
30        ), $options);
31    }
32
33    public function getName()
34    {
35        return $this->name;
36    }
37
38    public function getCallable()
39    {
40        return $this->callable;
41    }
42
43    public function getNodeClass()
44    {
45        return $this->options['node_class'];
46    }
47}
Note: See TracBrowser for help on using the repository browser.

Sites map