RegularExpression
in package
implements
TypeInterface
This is a type class of Regular Expression
Tags
Interfaces, Classes, Traits and Enums
- TypeInterface
- This is a TypeInterface, all type class must implmenting this interface
Table of Contents
- $name : string
- $pattern : string
- __construct() : mixed
- construct
- getName() : string
- get name
- validate() : bool
- validate
Properties
$name
private
string
$name
= 'string'
$pattern
private
string
$pattern
Methods
__construct()
construct
public
__construct(string $pattern[, string $name = 'string' ]) : mixed
Parameters
- $pattern : string
- $name : string = 'string'
Return values
mixed —getName()
get name
public
getName() : string
Return values
string —validate()
validate
public
validate(mixed $value) : bool
Parameters
- $value : mixed