added error type to validation rule.
This commit is contained in:
@@ -18,6 +18,14 @@ abstract class Rule {
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* The error type. This is used for rules that have more than
|
||||
* one type of error such as Size_Of and Upload_Of.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $error;
|
||||
|
||||
/**
|
||||
* Create a new validation Rule instance.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user