A collection of Writer objects.
In this collection we can receive writers.
In addition, this class can also verify if all requirements for the various writers in it are met.
Table of Contents
- $writers : array<string, WriterAbstract>
- __construct() : mixed
- checkRequirements() : void
- Iterates over each writer in this collection and checks its requirements.
- get() : WriterAbstract
- Retrieves a writer from the collection.
- register() : void
private array<string, WriterAbstract> $writers = 
public __construct([iterable<string, WriterAbstract> $writers =  ]) : mixed
- $writers : iterable<string, WriterAbstract> = 
Iterates over each writer in this collection and checks its requirements.
public checkRequirements() : void
If a requirement of a writer is missing.
Retrieves a writer from the collection.
public get(string $index) : WriterAbstract
- $index : string
the name of the writer to retrieve.
If the writer is not in the collection.
public register(WriterAbstract $writer) : void
- $writer : WriterAbstract