Commit d84b293b authored by Ad Schellevis's avatar Ad Schellevis

Phalcon 2.0.0 compatibility fix (validators)

parent 31df024e
......@@ -35,7 +35,15 @@ use \Phalcon\Validation\Message;
class IntegerValidator extends Validator implements ValidatorInterface
{
public function validate($validator, $attribute)
/**
* Executes Integer validation
*
* @param Phalcon\Validation $validator
* @param string $attribute
* @return boolean
*/
public function validate(\Phalcon\Validation $validator, $attribute)
{
$value = $validator->getValue($attribute);
$msg = $this->getOption('message');
......
......@@ -35,7 +35,14 @@ use \Phalcon\Validation\Message;
class MinMaxValidator extends Validator implements ValidatorInterface
{
public function validate($validator, $attribute)
/**
* Executes MinMax validation
*
* @param Phalcon\Validation $validator
* @param string $attribute
* @return boolean
*/
public function validate(\Phalcon\Validation $validator, $attribute)
{
$value = $validator->getValue($attribute);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment