Lowercase
- Full name:
\Qubus\Validation\Rules\Lowercase - Parent class:
\Qubus\Validation\Rule
Properties
message
Methods
check
Check the $value is valid
Parameters:
| Parameter | Type | Description |
|---|---|---|
$value | mixed |
Inherited methods
check
- This method is abstract. Parameters:
| Parameter | Type | Description |
|---|---|---|
$value | mixed |
setValidation
Set Validation class instance
Parameters:
| Parameter | Type | Description |
|---|---|---|
$validation | \Qubus\Validation\Validation |
setKey
Set key
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | string |
getKey
Get key
setAttribute
Set attribute
Parameters:
| Parameter | Type | Description |
|---|---|---|
$attribute | \Qubus\Validation\Attribute |
getAttribute
Get attribute
getParameters
Get parameters
setParameters
Set params
Parameters:
| Parameter | Type | Description |
|---|---|---|
$params | array |
setParameter
Set parameters
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$value | mixed |
fillParameters
Fill $params to $this->params
Parameters:
| Parameter | Type | Description |
|---|---|---|
$params | array |
parameter
Get parameter from given $key, return null if it not exists
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | string |
setParameterText
Set parameter text that can be displayed in error message using ':param_key'
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$text | string |
getParametersTexts
Get $paramsTexts
isImplicit
Check whether this rule is implicit
message
Just alias of setMessage
Parameters:
| Parameter | Type | Description |
|---|---|---|
$message | string |
setMessage
Set message
Parameters:
| Parameter | Type | Description |
|---|---|---|
$message | string |
getMessage
Get message
requireParameters
Check given $params must exist.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$params | array |
Throws: