PHP Class Flitch\Rule\File\PhpTags

Inheritance: extends Flitch\Rule\AbstractRule, implements Flitch\Rule\TokenRuleInterface
Afficher le fichier Open project: dasprid/flitch

Protected Properties

Свойство Type Description
$allowed array Allowed PHP tags.
$disallowClosingTag boolean Whether to disallow closing tags.
$tagMap array Map of tags to their names.

Méthodes publiques

Méthode Description
getListenerTokens ( ) : array getListenerTokens(): defined by TokenRuleInterface.
setAllowed ( string | array $allowed ) : PhpTags Set allowed PHP tags.
setDisallowClosingTag ( boolean $disallowClosingTag ) : PhpTags Set whether to disallow closing tags.
visitToken ( File $file ) : void visitToken(): defined by TokenRuleInterface.

Method Details

getListenerTokens() public méthode

getListenerTokens(): defined by TokenRuleInterface.
See also: TokenRuleInterface::getListenerTokens()
public getListenerTokens ( ) : array
Résultat array

setAllowed() public méthode

Set allowed PHP tags.
public setAllowed ( string | array $allowed ) : PhpTags
$allowed string | array
Résultat PhpTags

setDisallowClosingTag() public méthode

Set whether to disallow closing tags.
public setDisallowClosingTag ( boolean $disallowClosingTag ) : PhpTags
$disallowClosingTag boolean
Résultat PhpTags

visitToken() public méthode

visitToken(): defined by TokenRuleInterface.
See also: TokenRuleInterface::visitToken()
public visitToken ( File $file ) : void
$file Flitch\File\File
Résultat void

Property Details

$allowed protected_oe property

Allowed PHP tags.
protected array $allowed
Résultat array

$disallowClosingTag protected_oe property

Whether to disallow closing tags.
protected bool $disallowClosingTag
Résultat boolean

$tagMap protected_oe static_oe property

Map of tags to their names.
protected static array $tagMap
Résultat array