Represents a template test.
@author Fabien Potencier <fabien@symfony.com>
Expanded class hierarchy of Twig_Test
since 1.12 (to be removed in 2.0)
abstract class Twig_Test implements Twig_TestInterface, Twig_TestCallableInterface {
protected $options;
protected $arguments = array();
public function __construct(array $options = array()) {
$this->options = array_merge(array(
'callable' => null,
), $options);
}
public function getCallable() {
return $this->options['callable'];
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_Test:: |
protected | property | ||
Twig_Test:: |
protected | property | ||
Twig_Test:: |
public | function |
Overrides Twig_TestCallableInterface:: |
|
Twig_Test:: |
public | function | 3 | |
Twig_TestInterface:: |
public | function | Compiles a test. | 3 |