Collection

Extends \ArrayObject

Contains a collection of Templates that may be queried.

package

Default

Methods

Constructs this collection and requires a factory to load templates.

__construct(\phpDocumentor\Transformer\Template\Factory $factory, \phpDocumentor\Transformer\Writer\Collection $writerCollection) 

Returns the path where all templates are stored.

getTemplatesPath() : string

Response

string

Returns a list of all transformations contained in the templates of this collection.

getTransformations() : array<mixed,\phpDocumentor\Transformer\Transformation>

Loads a template with the given name or file path.

load(string $nameOrPath) : void

Arguments

$nameOrPath

string

Properties

factory

factory : \phpDocumentor\Transformer\Template\Factory

writerCollection

writerCollection : \phpDocumentor\Transformer\Writer\Collection