TransformerPass
in package
implements
CompilerPass
FinalYes
The TransformerPass is a special kind of CompilerPass that traverses all documents and Calls the DocumentNodeTraverser for each.
The TransformerPass cannot be injected as there must be one for each available priority of NodeTransformer.
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- getPriority() : int
- run() : array<string|int, DocumentNode>
Properties
$documentNodeTraverser read-only
private
DocumentNodeTraverser
$documentNodeTraverser
$priority read-only
private
int
$priority
Methods
__construct()
public
__construct(DocumentNodeTraverser $documentNodeTraverser, int $priority) : mixed
Parameters
- $documentNodeTraverser : DocumentNodeTraverser
- $priority : int
getPriority()
public
getPriority() : int
Return values
intrun()
public
run(array<string|int, mixed> $documents, CompilerContext $compilerContext) : array<string|int, DocumentNode>
Parameters
- $documents : array<string|int, mixed>
- $compilerContext : CompilerContext