Перенес функции в класс

This commit is contained in:
Фёдор Подлеснов 2018-02-07 16:56:59 +03:00
parent 5e1362d103
commit 5e6d39d638
8 changed files with 488 additions and 491 deletions

View file

@ -77,7 +77,7 @@ class Validator_Validator
}
}
public function skip($rule, $container) // -> Rule_Abstract
public function skip(/*.Validator_Rule_Abstract.*/$rule, /*.Collection.*/$container) // -> Rule_Abstract
{
if ($rule->skipEmpty()) {
$data = $container->get($rule->field);