phpDocumentor

Collection
in package

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

Properties

Methods

checkRequirements()

Iterates over each writer in this collection and checks its requirements.

public checkRequirements() : void
Tags
throws
RequirementMissing

If a requirement of a writer is missing.

Return values
void

get()

Retrieves a writer from the collection.

public get(string $index) : WriterAbstract
Parameters
$index : string

the name of the writer to retrieve.

Tags
throws
InvalidArgumentException

If the writer is not in the collection.

Return values
WriterAbstract

Search results