Свойство | Тип | Описание | |
---|---|---|---|
$pattern | string | Regular expression. |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | string |
public setPattern ( string $pattern ) : self | ||
$pattern | string | Regular expression |
Результат | self |