PHP Class Flitch\Rule\File\PhpTags

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

Protected Properties

Property Type Description
$allowed array Allowed PHP tags.
$disallowClosingTag boolean Whether to disallow closing tags.
$tagMap array Map of tags to their names.

Public Methods

Method 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 method

getListenerTokens(): defined by TokenRuleInterface.
See also: TokenRuleInterface::getListenerTokens()
public getListenerTokens ( ) : array
return array

setAllowed() public method

Set allowed PHP tags.
public setAllowed ( string | array $allowed ) : PhpTags
$allowed string | array
return PhpTags

setDisallowClosingTag() public method

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

visitToken() public method

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

Property Details

$allowed protected_oe property

Allowed PHP tags.
protected array $allowed
return array

$disallowClosingTag protected_oe property

Whether to disallow closing tags.
protected bool $disallowClosingTag
return boolean

$tagMap protected_oe static_oe property

Map of tags to their names.
protected static array $tagMap
return array