GuidesCompiler
in package
implements
CompilerPassInterface
FinalYes
Table of Contents
Interfaces
- CompilerPassInterface
- Represents a single pass / business rule to be executed by the Compiler.
Properties
- $compiler : Compiler
- $descriptorRepository : DescriptorRepository
Methods
- __construct() : mixed
- __invoke() : CompilableSubject
- Executes a compiler pass.
- getDescription() : string
- Returns a textual description of what this pass does for output purposes.
Properties
$compiler read-only
private
Compiler
$compiler
$descriptorRepository read-only
private
DescriptorRepository
$descriptorRepository
Methods
__construct()
public
__construct(Compiler $compiler, DescriptorRepository $descriptorRepository) : mixed
Parameters
- $compiler : Compiler
- $descriptorRepository : DescriptorRepository
__invoke()
Executes a compiler pass.
public
__invoke(CompilableSubject $subject) : CompilableSubject
This method will execute the business logic associated with a given compiler pass and allow it to manipulate or consumer the Object Graph using the ProjectDescriptor object.
Parameters
- $subject : CompilableSubject
-
Representation of the Object Graph that can be manipulated.
Return values
CompilableSubjectgetDescription()
Returns a textual description of what this pass does for output purposes.
public
getDescription() : string
Please note that the command line will be truncated to 68 characters (