abstract class Twig_Test

Represents a template test.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_Test

Deprecated

since 1.12 (to be removed in 2.0)

File

drupal/core/vendor/twig/twig/lib/Twig/Test.php, line 18

View source
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'];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_Test::$arguments protected property
Twig_Test::$options protected property
Twig_Test::getCallable public function Overrides Twig_TestCallableInterface::getCallable
Twig_Test::__construct public function 3
Twig_TestInterface::compile public function Compiles a test. 3