Collection

in package
extends ArrayObject

Contains a collection of Templates that may be queried.

template-extends

ArrayObject<string, Template>

Properties

private$factory  : \phpDocumentor\Transformer\Template\Factory                

private$writerCollection  : \phpDocumentor\Transformer\Writer\Collection                

Methods

Constructs this collection and requires a factory to load templates.

public__construct(Factory $factory, Collection $writerCollection) : mixed

Parameters

$factory : Factory
$writerCollection : Collection

Returns

mixed

Loads a template with the given name or file path.

publicload(Transformer $transformer, string $nameOrPath) : void

Parameters

$transformer : Transformer
$nameOrPath : string

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

publicgetTransformations() : \phpDocumentor\Transformer\Transformation[]

Returns

\phpDocumentor\Transformer\Transformation[]

Returns the path where all templates are stored.

publicgetTemplatesPath() : string

Returns

string