make database connection protected.
This commit is contained in:
parent
a1b3ba7538
commit
1c6f15a9fa
|
@ -5,13 +5,6 @@
|
||||||
|
|
||||||
class Validator {
|
class Validator {
|
||||||
|
|
||||||
/**
|
|
||||||
* The database connection that should be used by the validator.
|
|
||||||
*
|
|
||||||
* @var Database\Connection
|
|
||||||
*/
|
|
||||||
public $connection;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The array being validated.
|
* The array being validated.
|
||||||
*
|
*
|
||||||
|
@ -40,6 +33,13 @@ class Validator {
|
||||||
*/
|
*/
|
||||||
protected $messages = array();
|
protected $messages = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The database connection that should be used by the validator.
|
||||||
|
*
|
||||||
|
* @var Database\Connection
|
||||||
|
*/
|
||||||
|
protected $connection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The language that should be used when retrieving error messages.
|
* The language that should be used when retrieving error messages.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue