tasks/ext/phpcpd/PHPCPDFormatterElement.php
\PHPCPDFormatterElement
Package: phing\tasks\ext\phpcpd
A wrapper for the implementations of PHPCPDResultFormatter.
- Author
- Benjamin Schultz
- Version
- $Id: dece05e79e883b4d5e95f2215e36ce4f2f72ed2e $
Properties
Methods


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


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