1 | <?php |
||
14 | class ValidatorResolver extends Validator |
||
15 | { |
||
16 | |||
17 | protected $currentRule; |
||
18 | |||
19 | /** |
||
20 | * Validate Pattern Valid |
||
21 | * |
||
22 | * @param string $attribute String Attribute |
||
23 | * @param string $value String Value |
||
24 | * @param array $parameters Array Parameters |
||
25 | * |
||
26 | * @return boolean |
||
27 | */ |
||
28 | public function validatePattern($attribute, $value, $parameters = array()) |
||
32 | |||
33 | /** |
||
34 | * Validate Current Password |
||
35 | * |
||
36 | * @param string $attribute String Attribute |
||
37 | * @param mixed $value Mixed Value |
||
38 | * @param array $parameters Array Parameters |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function validateCurrentPassword($attribute, $value, $parameters = array()) |
||
48 | |||
49 | /** |
||
50 | * Validate that an attribute is cpf valid |
||
51 | * |
||
52 | * @param string $attribute String Attribute |
||
53 | * @param mixed $value Mixed Value |
||
54 | * @param array $parameters Array Parameters |
||
55 | * |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function validateDocument($attribute, $value, $parameters = array()) |
||
67 | |||
68 | /** |
||
69 | * Validate currency |
||
70 | * |
||
71 | * @param string $attribute String Attribute |
||
72 | * @param mixed $value Mixed Value |
||
73 | * @param array $parameters Array Parameters |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function validateCurrency($attribute, $value, $parameters = array()) |
||
81 | |||
82 | /** |
||
83 | * Validate the not existence of an attribute value in a database table. |
||
84 | * |
||
85 | * @param string $attribute |
||
86 | * @param mixed $value |
||
87 | * @param array $parameters |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function validateNotExists($attribute, $value, $parameters) |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function __call($method, $parameters) |
||
118 | } |
||
119 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.