added error type to validation rule.

This commit is contained in:
Taylor Otwell
2011-06-26 16:17:41 -05:00
parent 2289570c95
commit bd3d8f6347
3 changed files with 26 additions and 7 deletions

View File

@@ -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.
*