class Twig_Test

Represents a template test.

Methods

__construct(string $name, callable|null $callable = null, array $options = array())

Creates a template test.

getName()

No description

callable|null
getCallable()

Returns the callable to execute for this test.

getNodeClass()

No description

isVariadic()

No description

isDeprecated()

No description

getDeprecatedVersion()

No description

getAlternative()

No description

Details

at line 34
__construct(string $name, callable|null $callable = null, array $options = array())

Creates a template test.

Parameters

string $name Name of this test
callable|null $callable A callable implementing the test. If null, you need to overwrite the "node_class" option to customize compilation.
array $options Options array

at line 50
getName()

at line 60
callable|null getCallable()

Returns the callable to execute for this test.

Return Value

callable|null

at line 65
getNodeClass()

at line 70
isVariadic()

at line 75
isDeprecated()

at line 80
getDeprecatedVersion()

at line 85
getAlternative()