PHP Class SebastianBergmann\PHPCPD\Log\AbstractXmlLogger

Show file Open project: sebastianbergmann/phpcpd

Protected Properties

Property Type Description
$document

Public Methods

Method Description
__construct ( string $filename ) Constructor.
processClones ( CodeCloneMap $clones ) Processes a list of clones.

Protected Methods

Method Description
convertToUtf8 ( string $string ) : string Converts a string to UTF-8 encoding.
flush ( ) Writes the XML document to the file.
isUtf8 ( string $string ) : boolean Checks a string for UTF-8 encoding.

Method Details

__construct() public method

Constructor.
public __construct ( string $filename )
$filename string

convertToUtf8() protected method

Converts a string to UTF-8 encoding.
protected convertToUtf8 ( string $string ) : string
$string string
return string

flush() protected method

Writes the XML document to the file.
protected flush ( )

isUtf8() protected method

Checks a string for UTF-8 encoding.
protected isUtf8 ( string $string ) : boolean
$string string
return boolean

processClones() abstract public method

Processes a list of clones.
abstract public processClones ( CodeCloneMap $clones )
$clones SebastianBergmann\PHPCPD\CodeCloneMap

Property Details

$document protected property

protected $document