OneExactly
in package
implements
RuleInterface
Rule wich allows the defined character from set.
Note that it is ase sensitive
Tags
Interfaces, Classes and Traits
- RuleInterface
- Common interface for all rules
Table of Contents
- $charSet : string
- Charset
- __construct() : mixed
- Constructor
- validate() : StringIterator
- Method validates string
Properties
$charSet
Charset
private
string
$charSet
= ''
Methods
__construct()
Constructor
public
__construct(string $charSet) : mixed
Parameters
- $charSet : string
-
the defined character set
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