Twig API
Class

Twig_Test_Method

class Twig_Test_Method extends Twig_Test

Represents a method template test.

Methods

__construct(Twig_ExtensionInterface $extension, $method, array $options = array())

getCallable()

from Twig_Test
string compile()

Compiles a test.

Details

at line 23
public __construct(Twig_ExtensionInterface $extension, $method, array $options = array())

Parameters

Twig_ExtensionInterface $extension
$method
array $options

in Twig_Test at line 30
public getCallable()

at line 33
public string compile()

Compiles a test.

Return Value

string The PHP code for the test