tasks/ext/phpmd/PHPMDFormatterElement.php
\PHPMDFormatterElement
Package: phing\tasks\ext\phpmd
A wrapper for the implementations of PHPMDResultFormatter.
- Author
- Benjamin Schultz
- Since
- 2.4.1
- Version
- $Id: 69fc758899446b96312ac12f26b461969eb41b6e $
Properties
Methods


getRenderer(
)
:
\PHP_PMD_AbstractRenderer
Creates a report renderer instance based on the formatter type.
Returns
Throws
Type | Description |
---|---|
\PHP_PMD_AbstractRenderer |
Exception | Description |
---|---|
\BuildException | When the specified renderer does not exist. |


getUseFile(
)
:
boolean
Return whether to write formatter results to file or not.
Returns
Type | Description |
---|---|
boolean |


setOutfile(
\PhingFile $outfile
)
:
void
Sets the output file for the formatter results.
Parameters
Name | Type | Description |
---|---|---|
$outfile | \PhingFile | The output file |


setType(
string $type
)
:
void
Sets the formatter type.
Parameters
Name | Type | Description |
---|---|---|
$type | string | Type of the formatter |