classes/phing/tasks/ext/phpcpd/PHPCPDFormatterElement.php
\PHPCPDFormatterElement
A wrapper for the implementations of PHPCPDResultFormatter.
- author
- Benjamin Schultz
- package
- phing.tasks.ext.phpcpd
- version
- $Id: PHPCPDFormatterElement.php 728 2010-02-13 23:21:51Z bschultz $
Properties
Methods

__construct(
\PHPCPDTask $parentTask
)
:
Construct a new PHPCPDFormatterElement with parent task.
| Name | Type | Description |
|---|---|---|
| $parentTask | \PHPCPDTask |

getFormatter(
)
:
\PHPCPDResultFormatterReturns the report formatter.
| Type | Description |
|---|---|
| \PHPCPDResultFormatter |
- 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 |