CaseSensitiveLiteralOrNothing
extends CaseInSensitiveLiteralOrNothingBase
in package
Rule wich defines case sensitive literal or empty string
Tags
Table of Contents
- $anyRuleFromSet : AnyRuleFromSet
- List of rules
- __construct() : mixed
- Constructor
- validate() : StringIterator
- Method validates string
Properties
$anyRuleFromSet
List of rules
private
AnyRuleFromSet
$anyRuleFromSet
Methods
__construct()
Constructor
public
__construct(string $literal) : mixed
Parameters
- $literal : string
-
the defined literal
Return values
mixed —validate()
Method validates string
public
validate(StringIterator $iterator, bool &$ruleWasApplied) : StringIterator
Parameters
- $iterator : StringIterator
-
iterator for validating string
- $ruleWasApplied : bool
-
was the rool applied
Tags
Return values
StringIterator —iterator after validation