File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1212use Inhere \Validate \Filter \DataFilteringTrait ;
1313use Inhere \Validate \Traits \ErrorMessageTrait ;
1414use Inhere \Validate \Utils \Helper ;
15- use Inhere \Validate \Utils \ UserAndContextValidatorsTrait ;
15+ use Inhere \Validate \Validator \ ScopedValidatorsTrait ;
1616use Inhere \Validate \Validator \UserValidators ;
1717
1818/**
2222 */
2323trait ValidationTrait
2424{
25- use DataFilteringTrait, ErrorMessageTrait, UserAndContextValidatorsTrait ;
25+ use DataFilteringTrait, ErrorMessageTrait, ScopedValidatorsTrait ;
2626
2727 /** @var array The rules is by setRules() */
2828 private $ _rules = [];
Original file line number Diff line number Diff line change 66 * Time: 21:47
77 */
88
9- namespace Inhere \Validate \Utils ;
9+ namespace Inhere \Validate \Validator ;
1010
1111/**
1212 * Class Rule
13- * @package Inhere\Validate\Utils
13+ * @package Inhere\Validate\Validator
1414 * @TODO
1515 */
1616final class Rule
Original file line number Diff line number Diff line change 66 * Time: 11:26
77 */
88
9- namespace Inhere \Validate \Utils ;
9+ namespace Inhere \Validate \Validator ;
1010
1111use Inhere \Validate \Filter \Filters ;
1212use Inhere \Validate \Validators ;
1313
1414/**
15- * trait UserAndContextValidatorsTrait
15+ * trait ScopedValidatorsTrait - deps the current validation instance.
1616 * - user custom validators
1717 * - some validators of require context data.
18- * @package Inhere\Validate\Utils
18+ * @package Inhere\Validate\Validator
1919 */
20- trait UserAndContextValidatorsTrait
20+ trait ScopedValidatorsTrait
2121{
2222 /** @var array user custom add's validators(current scope) */
2323 protected $ _validators = [];
@@ -87,7 +87,7 @@ public function getValidator(string $name)
8787
8888 /**
8989 * @param array $validators
90- * @return UserAndContextValidatorsTrait
90+ * @return ScopedValidatorsTrait
9191 */
9292 public function addValidators (array $ validators )
9393 {
You can’t perform that action at this time.
0 commit comments