PHP Class HippoPHP\Hippo\Checks\Naming\EncodingCheck

Inheritance: extends HippoPHP\Hippo\Checks\AbstractCheck, implements HippoPHP\Hippo\Checks\CheckInterface
Afficher le fichier Open project: hippophp/hippo

Protected Properties

Свойство Type Description
$bom boolean Are we checking for a BOM too?
$encoding string File encoding to check for.

Méthodes publiques

Méthode Description
getConfigRoot ( ) : string
setEncodingType ( string $encoding ) Sets the file encoding type to check for.
setWithBOM ( boolean $bom ) Do we want to use BOM?

Méthodes protégées

Méthode Description
checkFileInternal ( CheckContext $checkContext, Config $config ) checkFileInternal(): defined by AbstractCheck.

Method Details

checkFileInternal() protected méthode

checkFileInternal(): defined by AbstractCheck.
See also: AbstractCheck::checkFileInternal()
protected checkFileInternal ( CheckContext $checkContext, Config $config )
$checkContext HippoPHP\Hippo\CheckContext
$config HippoPHP\Hippo\Config\Config

getConfigRoot() public méthode

public getConfigRoot ( ) : string
Résultat string

setEncodingType() public méthode

Sets the file encoding type to check for.
public setEncodingType ( string $encoding )
$encoding string

setWithBOM() public méthode

Do we want to use BOM?
public setWithBOM ( boolean $bom )
$bom boolean

Property Details

$bom protected_oe property

Are we checking for a BOM too?
protected bool $bom
Résultat boolean

$encoding protected_oe property

File encoding to check for.
protected string $encoding
Résultat string