GeneratorManager extends SplPriorityQueue
GeneratorManager class. This class manages the generators used in the Cecil build process. It extends \SplPriorityQueue to allow generators to be processed in order of priority. Generators can be added with a specific priority, and the process method will run each generator in order, collecting the pages they generate.
Table of Contents
Properties
Methods
- __construct() : void
- addGenerator() : self
- Adds a generator.
- compare() : int
- {@inheritdoc}
- process() : Collection
- Process each generator.
Properties
$builder
protected
Builder
$builder
Methods
__construct()
public
__construct(Builder $builder) : void
Parameters
- $builder : Builder
addGenerator()
Adds a generator.
public
addGenerator(GeneratorInterface $generator[, int $priority = 1 ]) : self
Parameters
- $generator : GeneratorInterface
- $priority : int = 1
Return values
selfcompare()
{@inheritdoc}
public
compare(mixed $priority1, mixed $priority2) : int
Parameters
- $priority1 : mixed
- $priority2 : mixed
Return values
intprocess()
Process each generator.
public
process() : Collection