Completed
Push — master ( ef12cc...8a0633 )
by Adrian
9s
created
src/RuleFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      *            label of the form input field or model attribute
133 133
      *
134 134
      * @throws \InvalidArgumentException
135
-     * @return \Sirius\Validation\Rule\AbstractValidator
135
+     * @return CallbackRule
136 136
      */
137 137
     public function createRule($name, $options = null, $messageTemplate = null, $label = null)
138 138
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     }
195 195
 
196 196
     /**
197
-     * @param $name
197
+     * @param callable $name
198 198
      * @param $options
199 199
      *
200 200
      * @return CallbackRule
Please login to merge, or discard this patch.
src/ValueValidator.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
     protected $label;
44 44
 
45 45
 
46
+    /**
47
+     * @param string $label
48
+     */
46 49
     public function __construct(
47 50
         RuleFactory $ruleFactory = null,
48 51
         ErrorMessage $errorMessagePrototype = null,
@@ -149,7 +152,7 @@  discard block
 block discarded – undo
149 152
     }
150 153
 
151 154
     /**
152
-     * @param AbstractValidator $validationRule
155
+     * @param AbstractRule $validationRule
153 156
      *
154 157
      * @return ValueValidator
155 158
      */
@@ -275,6 +278,9 @@  discard block
 block discarded – undo
275 278
         return count($this->messages) === 0;
276 279
     }
277 280
 
281
+    /**
282
+     * @param null|DataWrapper\WrapperInterface $context
283
+     */
278 284
     private function validateRule($rule, $value, $valueIdentifier, $context)
279 285
     {
280 286
         $rule->setContext($context);
Please login to merge, or discard this patch.