phpDocumentor

Collection
in package

FinalYes

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

Properties

$writers  : array<string, WriterAbstract>

Methods

__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.

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

        
On this page

Search results