classes/phing/tasks/ext/phpmd/PHPMDFormatterElement.php
\PHPMDFormatterElement
A wrapper for the implementations of PHPMDResultFormatter.
- author
- Benjamin Schultz
- package
- phing.tasks.ext.phpmd
- since
- 2.4.1
- version
- $Id: PHPMDFormatterElement.php 755 2010-03-24 20:19:08Z bschultz $
Properties
Methods

getRenderer(
)
:
\PHP_PMD_AbstractRendererCreates a report renderer instance based on the formatter type.
| Type | Description |
|---|---|
| \PHP_PMD_AbstractRenderer |
- throws
- When the specified renderer does not exist.

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

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

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