CaseInSensitiveLiteral
extends CaseSensitiveLiteralBase
in package
Rule wich defines case sensitive literal
Tags
Table of Contents
- $literal : string
- Literal
- __construct() : mixed
- Constructor
- getLiteral() : string
- Method returns literal
- validate() : StringIterator
- {@inheritdoc}
- compare() : bool
- {@inheritdoc}
Properties
$literal
Literal
private
string
$literal
= ''
Methods
__construct()
Constructor
public
__construct(string $literal) : mixed
Parameters
- $literal : string
-
the defined literal
Return values
mixed —getLiteral()
Method returns literal
public
getLiteral() : string
Return values
string —literal
validate()
{@inheritdoc}
public
validate(StringIterator $iterator, bool &$ruleWasApplied) : StringIterator
Parameters
- $iterator : StringIterator
- $ruleWasApplied : bool
Tags
Return values
StringIterator —compare()
{@inheritdoc}
protected
compare(string $str1, string $str2) : bool
Parameters
- $str1 : string
- $str2 : string