class Twig_Test_Function in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Test/Function.php \Twig_Test_Function
Represents a function template test.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Twig_Test implements Twig_TestCallableInterface, Twig_TestInterface
- class \Twig_Test_Function
Expanded class hierarchy of Twig_Test_Function
Deprecated
since 1.12 (to be removed in 2.0)
File
- vendor/
twig/ twig/ lib/ Twig/ Test/ Function.php, line 21
View source
class Twig_Test_Function extends Twig_Test {
protected $function;
public function __construct($function, array $options = array()) {
$options['callable'] = $function;
parent::__construct($options);
$this->function = $function;
}
public function compile() {
return $this->function;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_Test:: |
protected | property | ||
Twig_Test:: |
protected | property | ||
Twig_Test:: |
public | function |
Overrides Twig_TestCallableInterface:: |
|
Twig_Test_Function:: |
protected | property | ||
Twig_Test_Function:: |
public | function |
Compiles a test. Overrides Twig_TestInterface:: |
|
Twig_Test_Function:: |
public | function |
Overrides Twig_Test:: |