FileIo

Extends \phpDocumentor\Transformer\Writer\WriterAbstract

Writer containing file system operations.

The Query part of the transformation determines the action, currently supported is:

  • copy, copies a file or directory to the destination given in $artifact
package

Default

Methods

Checks if there is a space in the path.

checkForSpacesInPath(string $path) : void
inherited
Throws
\InvalidArgumentException

if path contains a space.

Arguments

$path

string

This method verifies whether PHP has all requirements needed to run this writer.

checkRequirements() : void
inherited

If one of the requirements is missing for this Writer then an exception of type RequirementMissing should be thrown; this indicates to the calling process that this writer will not function.

Throws
\phpDocumentor\Transformer\Writer\Exception\RequirementMissing

when a requirements is missing stating which one.

Copies files or folders to the Artifact location.

executeQueryCopy(\phpDocumentor\Transformer\Transformation $transformation) : void
Throws
\phpDocumentor\Transformer\Exception

Arguments

$transformation

\phpDocumentor\Transformer\Transformation

Transformation to use as data source.

Abstract definition of the transformation method.

transform(\phpDocumentor\Descriptor\ProjectDescriptor $project, \phpDocumentor\Transformer\Transformation $transformation) : void
inherited abstract

Arguments

$project

\phpDocumentor\Descriptor\ProjectDescriptor

Document containing the structure.

$transformation

\phpDocumentor\Transformer\Transformation

Transformation to execute.

Properties

transformation

transformation : \phpDocumentor\Transformer\Transformation