PHP Class Flitch\Rule\Line\Separator

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

Protected Properties

Property Type Description
$eolChar string Allowed line-ending.
$eolName string Name of line-ending character.

Public Methods

Method Description
setEolStyle ( string $style ) : Separator Set end-of-line style.
visitFile ( File $file ) : void visitFile(): defined by FileRuleInterface.

Method Details

setEolStyle() public method

Valid values are windows, unix and mac.
public setEolStyle ( string $style ) : Separator
$style string
return Separator

visitFile() public method

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

Property Details

$eolChar protected_oe property

Allowed line-ending.
protected string $eolChar
return string

$eolName protected_oe property

Name of line-ending character.
protected string $eolName
return string