$writer
$writer : string
Class representing a single Transformation.
$transformer : \phpDocumentor\Transformer\Transformer
$parameters : array<mixed,\phpDocumentor\Transformer\Template\Parameter>
__construct(string $query, string $writer, string $source, string $artifact)
Constructs a new Transformation object and populates the required parameters.
string | $query | What information to use as datasource for the writer's source. |
string | $writer | What type of transformation to apply (XSLT, PDF, Checkstyle etc). |
string | $source | Which template or type of source to use. |
string | $artifact | What is the filename of the result (relative to the generated root) |
getWriter() : \phpDocumentor\Transformer\Writer\WriterAbstract|null
Returns an instantiated writer object.
getSourceAsPath() : string
Returns the source as a path instead of a regular value.
This method applies the following rules to the value of $source:
if no valid file could be found.
setArtifact(string $artifact) : void
Filename of the resulting artifact relative to the root.
If the query results in a set of artifacts (multiple nodes / array); then this string must contain an identifying variable as returned by the writer.
string | $artifact | Name of artifact to generate; usually a filepath. |
setParameters(array<mixed,\phpDocumentor\Transformer\Template\Parameter> $parameters) : void
Sets an array of parameters (key => value).
array<mixed,\phpDocumentor\Transformer\Template\Parameter> | $parameters | Associative multidimensional array containing parameters for the Writer. |
getParameters() : array<mixed,\phpDocumentor\Transformer\Template\Parameter>
Returns all parameters for this transformation.
getParameter(string $name) : \phpDocumentor\Transformer\Template\Parameter
Returns a specific parameter, or $default if none exists.
string | $name | Name of the parameter to return. |
getParametersWithKey(string $name) : \phpDocumentor\Transformer\Template\Parameter
Returns a specific parameter, or $default if none exists.
string | $name | Name of the parameter to return. |
setTransformer(\phpDocumentor\Transformer\Transformer $transformer)
Sets the transformer on this transformation.
\phpDocumentor\Transformer\Transformer | $transformer |
getTransformer() : \phpDocumentor\Transformer\Transformer
Returns the transformer for this transformation.