Documentation

LastModifiedExtensionInterface extends ExtensionInterface

Interface implemented by extension classes.

Table of Contents

Methods

getFilters()  : array<string|int, TwigFilter>
Returns a list of filters to add to the existing list.
getFunctions()  : array<string|int, TwigFunction>
Returns a list of functions to add to the existing list.
getLastModified()  : int
Returns the last modification time of the extension for cache invalidation.
getNodeVisitors()  : array<string|int, NodeVisitorInterface>
Returns the node visitor instances to add to the existing list.
getOperators()  : array<string|int, array<string|int, mixed>>
Returns a list of operators to add to the existing list.
getTests()  : array<string|int, TwigTest>
Returns a list of tests to add to the existing list.
getTokenParsers()  : array<string|int, TokenParserInterface>
Returns the token parser instances to add to the existing list.

Methods

getLastModified()

Returns the last modification time of the extension for cache invalidation.

public getLastModified() : int

This timestamp should be the last time the source code of the extension class and all its dependencies were modified (including the Runtime class).

Return values
int

getOperators()

Returns a list of operators to add to the existing list.

public getOperators() : array<string|int, array<string|int, mixed>>
Tags
psalm-return

array{ array<string, array{precedence: int, precedence_change?: PrecedenceChange, class: class-string<AbstractUnary>}>, array<string, array{precedence: int, precedence_change?: PrecedenceChange, class?: class-string<AbstractBinary>, associativity: ExpressionParser::OPERATOR_*}> }

Return values
array<string|int, array<string|int, mixed>>

        
On this page

Search results