\phpDocumentor\Plugin\Core\Transformer\WriterCheckstyle

Checkstyle transformation writer; generates checkstyle report

Summary

Methods
Properties
Constants
checkRequirements()
transform()
getTranslator()
setTranslator()
No public properties found
No constants found
checkForSpacesInPath()
getDestinationPath()
saveCheckstyleReport()
$translator
N/A
No private methods found
No private properties found
N/A

Properties

Methods

checkRequirements()

checkRequirements() : void

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

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.

getTranslator()

getTranslator() : \phpDocumentor\Translator\Translator

Returns an instance of the object responsible for translating content.

Returns

\phpDocumentor\Translator\Translator

setTranslator()

setTranslator(\phpDocumentor\Translator\Translator  $translator) : void

Sets a new object capable of translating strings on this writer.

Parameters

\phpDocumentor\Translator\Translator $translator

checkForSpacesInPath()

checkForSpacesInPath(string  $path) : void

Checks if there is a space in the path.

Parameters

string $path

Throws

\InvalidArgumentException

if path contains a space.

getDestinationPath()

getDestinationPath(\phpDocumentor\Transformer\Transformation  $transformation) : string

Retrieves the destination location for this artifact.

Parameters

\phpDocumentor\Transformer\Transformation $transformation

Returns

string

saveCheckstyleReport()

saveCheckstyleReport(string  $artifact, \DOMDocument  $document) : void

Save the checkstyle report to the artifact

Parameters

string $artifact

Target name for the report

\DOMDocument $document

The actual xml document being saved