$translator
$translator : \phpDocumentor\Translator\Translator
Statistics transformation writer; generates statistic report as XML.
Generated XML structure:
<?xml version="1.0"?>
<phpdoc-stats version="2.4.0">
<stat date="2014-06-02T19:26:15+02:00">
<counters>
<deprecated>100</deprecated>
<errors>377</errors>
<markers>2</markers>
</counters>
</stat>
</phpdoc-stats>
$translator : \phpDocumentor\Translator\Translator
getTranslator() : \phpDocumentor\Translator\Translator
Returns an instance of the object responsible for translating content.
setTranslator(\phpDocumentor\Translator\Translator $translator) : void
Sets a new object capable of translating strings on this writer.
\phpDocumentor\Translator\Translator | $translator |
transform(\phpDocumentor\Descriptor\ProjectDescriptor $project, \phpDocumentor\Transformer\Transformation $transformation) : void
This method generates the checkstyle.xml report
\phpDocumentor\Descriptor\ProjectDescriptor | $project | Document containing the structure. |
\phpDocumentor\Transformer\Transformation | $transformation | Transformation to execute. |
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.
when a requirements is missing stating which one.
getDestinationPath(\phpDocumentor\Transformer\Transformation $transformation) : string
Retrieves the destination location for this artifact.
\phpDocumentor\Transformer\Transformation | $transformation |
appendStatElement(\DOMDocument $document, \phpDocumentor\Descriptor\ProjectDescriptor $project, string $date) : \DOMDocument
Appends a stat fragment.
\DOMDocument | $document | |
\phpDocumentor\Descriptor\ProjectDescriptor | $project | |
string | $date |
getFilesCounter(\phpDocumentor\Descriptor\ProjectDescriptor $project) : integer
Get number of files.
\phpDocumentor\Descriptor\ProjectDescriptor | $project |
getDeprecatedCounter(\phpDocumentor\Descriptor\ProjectDescriptor $project) : integer
Get number of deprecated elements.
\phpDocumentor\Descriptor\ProjectDescriptor | $project |
getErrorCounter(\phpDocumentor\Descriptor\ProjectDescriptor $project) : integer
Get number of errors.
\phpDocumentor\Descriptor\ProjectDescriptor | $project |
getMarkerCounter(\phpDocumentor\Descriptor\ProjectDescriptor $project) : integer
Get number of markers.
\phpDocumentor\Descriptor\ProjectDescriptor | $project |