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_AbstractRendererCreates 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(
)
:
booleanReturn whether to write formatter results to file or not.
Returns
| Type | Description |
|---|---|
| boolean |

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

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