Completed
Push — master ( b3b5bc...9cb290 )
by Adrian
01:51
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   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@  discard block
 block discarded – undo
44 44
     protected $label;
45 45
 
46 46
 
47
+    /**
48
+     * @param string $label
49
+     */
47 50
     public function __construct(
48 51
         RuleFactory $ruleFactory = null,
49 52
         ErrorMessage $errorMessagePrototype = null,
@@ -142,7 +145,7 @@  discard block
 block discarded – undo
142 145
     }
143 146
 
144 147
     /**
145
-     * @param AbstractValidator $validationRule
148
+     * @param AbstractRule $validationRule
146 149
      *
147 150
      * @return ValueValidator
148 151
      */
@@ -268,6 +271,10 @@  discard block
 block discarded – undo
268 271
         return count($this->messages) === 0;
269 272
     }
270 273
 
274
+    /**
275
+     * @param null|string $valueIdentifier
276
+     * @param null|DataWrapper\WrapperInterface $context
277
+     */
271 278
     private function validateRule($rule, $value, $valueIdentifier, $context)
272 279
     {
273 280
         $rule->setContext($context);
Please login to merge, or discard this patch.