SelectorCharLinter
in package
implements
CharLinter
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- lintChar() : bool|null
- Performs lint for a given char, check selector part
- getSelectorNameAtRuleIfexist() : string|null
- lintNestedSelectorChar() : bool|null
- Performs lint for a given char, check nested selector part
- lintSelectorContentChar() : bool|null
- Performs lint for a given char, check selector content part
- lintSelectorContentStart() : bool|null
- lintSelectorName() : void
- lintSelectorNameChar() : bool|null
- Performs lint for a given char, check selector part
- lintSelectorNameContent() : bool
- lintSelectorNameStart() : bool|null
Properties
$lintConfiguration read-only
protected
LintConfiguration
$lintConfiguration
Methods
__construct()
public
__construct(LintConfiguration $lintConfiguration) : mixed
Parameters
- $lintConfiguration : LintConfiguration
lintChar()
Performs lint for a given char, check selector part
public
lintChar(string $charValue, LintContext $lintContext) : bool|null
Parameters
- $charValue : string
- $lintContext : LintContext
Return values
bool|null —: true if the process should continue, else false, null if this char is not about selector
getSelectorNameAtRuleIfexist()
protected
getSelectorNameAtRuleIfexist(string $selector) : string|null
Parameters
- $selector : string
Return values
string|nulllintNestedSelectorChar()
Performs lint for a given char, check nested selector part
protected
lintNestedSelectorChar(string $charValue, LintContext $lintContext) : bool|null
Parameters
- $charValue : string
- $lintContext : LintContext
Return values
bool|null —: true if the process should continue, else false, null if this char is not a nested selector
lintSelectorContentChar()
Performs lint for a given char, check selector content part
protected
lintSelectorContentChar(string $charValue, LintContext $lintContext) : bool|null
Parameters
- $charValue : string
- $lintContext : LintContext
Return values
bool|null —: true if the process should continue, else false, null if this char is not a selector content
lintSelectorContentStart()
protected
lintSelectorContentStart(string $charValue, LintContext $lintContext) : bool|null
Parameters
- $charValue : string
- $lintContext : LintContext
Return values
bool|nulllintSelectorName()
protected
lintSelectorName(LintContext $lintContext) : void
Parameters
- $lintContext : LintContext
lintSelectorNameChar()
Performs lint for a given char, check selector part
protected
lintSelectorNameChar(string $charValue, LintContext $lintContext) : bool|null
Parameters
- $charValue : string
- $lintContext : LintContext
Return values
bool|null —: true if the process should continue, else false, null if this char is not about selector
lintSelectorNameContent()
protected
lintSelectorNameContent(string $charValue, LintContext $lintContext) : bool
Parameters
- $charValue : string
- $lintContext : LintContext
Return values
boollintSelectorNameStart()
protected
lintSelectorNameStart(string $charValue, LintContext $lintContext) : bool|null
Parameters
- $charValue : string
- $lintContext : LintContext