mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
* updated Twig to the latest version in 1.x series (v1.35.0)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) 2010-2012 Fabien Potencier
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
@@ -12,6 +12,8 @@
|
||||
/**
|
||||
* Represents a template test.
|
||||
*
|
||||
* @final
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class Twig_SimpleTest
|
||||
@@ -27,6 +29,8 @@ class Twig_SimpleTest
|
||||
$this->options = array_merge(array(
|
||||
'is_variadic' => false,
|
||||
'node_class' => 'Twig_Node_Expression_Test',
|
||||
'deprecated' => false,
|
||||
'alternative' => null,
|
||||
), $options);
|
||||
}
|
||||
|
||||
@@ -49,4 +53,21 @@ class Twig_SimpleTest
|
||||
{
|
||||
return $this->options['is_variadic'];
|
||||
}
|
||||
|
||||
public function isDeprecated()
|
||||
{
|
||||
return (bool) $this->options['deprecated'];
|
||||
}
|
||||
|
||||
public function getDeprecatedVersion()
|
||||
{
|
||||
return $this->options['deprecated'];
|
||||
}
|
||||
|
||||
public function getAlternative()
|
||||
{
|
||||
return $this->options['alternative'];
|
||||
}
|
||||
}
|
||||
|
||||
class_alias('Twig_SimpleTest', 'Twig\TwigTest', false);
|
||||
|
Reference in New Issue
Block a user