PHP Class Flitch\Rule\File\Encoding

Inheritance: extends Flitch\Rule\AbstractRule, implements Flitch\Rule\FileRuleInterface
Datei anzeigen Open project: dasprid/flitch

Protected Properties

Property Type Description
$allowBom boolean Whether to allow byte order marks.
$byteOrderMarks array Possible byte order marks.
$encoding string Encoding of the source.

Public Methods

Method Description
setAllowBom ( boolean $allowBom ) : Encoding Set whether to allow byte order marks.
setEncoding ( string $encoding ) : Encoding Set encoding.
visitFile ( File $file ) : void visitFile(): defined by FileRuleInterface.

Method Details

setAllowBom() public method

Set whether to allow byte order marks.
public setAllowBom ( boolean $allowBom ) : Encoding
$allowBom boolean
return Encoding

setEncoding() public method

Set encoding.
public setEncoding ( string $encoding ) : Encoding
$encoding string
return Encoding

visitFile() public method

visitFile(): defined by FileRuleInterface.
See also: FileRuleInterface::visitFile()
public visitFile ( File $file ) : void
$file Flitch\File\File
return void

Property Details

$allowBom protected_oe property

Whether to allow byte order marks.
protected bool $allowBom
return boolean

$byteOrderMarks protected_oe static_oe property

Possible byte order marks.
protected static array $byteOrderMarks
return array

$encoding protected_oe property

Encoding of the source.
protected string $encoding
return string