Pattern
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- getPattern() : string
- getRegex() : string
- matches() : bool
Properties
$pattern
private
string
$pattern
$regex
private
string
$regex
Methods
__construct()
public
__construct(string $pattern) : mixed
Parameters
- $pattern : string
getPattern()
public
getPattern() : string
Return values
stringgetRegex()
public
getRegex() : string
Return values
stringmatches()
public
matches(string $word) : bool
Parameters
- $word : string