phpDocumentor

FileIo extends WriterAbstract
in package

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

Table of Contents

__toString()  : string
checkRequirements()  : void
This method verifies whether PHP has all requirements needed to run this writer.
transform()  : void
Invokes the query method contained in this class.

Methods

__toString()

public __toString() : string
Return values
string

checkRequirements()

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

public checkRequirements() : void

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.

Tags
throws
RequirementMissing

When a requirements is missing stating which one.

codeCoverageIgnore
Return values
void

transform()

Invokes the query method contained in this class.

public transform(ProjectDescriptor $project, Transformation $transformation) : void
Parameters
$project : ProjectDescriptor

Document containing the structure.

$transformation : Transformation

Transformation to execute.

Tags
throws
InvalidArgumentException

If the query is not supported.

throws
FileNotFoundException

If the source file does not exist or could not be read.

throws
FileExistsException
Return values
void

Search results