Property | Type | Description | |
---|---|---|---|
$pattern | string | Regular expression. |
Method | Description | |
---|---|---|
__construct ( string $pattern ) | Constructor. | |
getPattern ( ) : string | Returns the validation regular expression. | |
isValid ( mixed $value ) : boolean | Validates a value. | |
setPattern ( string $pattern ) : self | Sets the validation regular expression. |
public __construct ( string $pattern ) | ||
$pattern | string | Regular expression |
public getPattern ( ) : string | ||
return | string |
public setPattern ( string $pattern ) : self | ||
$pattern | string | Regular expression |
return | self |