@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * Checks if all elements are valid |
49 | 49 | * |
50 | - * @return mixed |
|
50 | + * @return boolean |
|
51 | 51 | */ |
52 | 52 | public function isValid() |
53 | 53 | { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * This value here is just a string and it can be the content that |
136 | 136 | * goes inside <label> tags for example. |
137 | 137 | * |
138 | - * @return mixed |
|
138 | + * @return string |
|
139 | 139 | */ |
140 | 140 | public function getValue() |
141 | 141 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * This name can be null however a form or field set will use it |
149 | 149 | * in the FormInterface::get() method to retrieve it. |
150 | 150 | * |
151 | - * @return mixed |
|
151 | + * @return string |
|
152 | 152 | */ |
153 | 153 | public function getName() |
154 | 154 | { |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | use Slick\Common\Utils\Collection\AbstractCollection; |
13 | 13 | use Slick\Form\ElementInterface; |
14 | -use Slick\Form\Input\ValidationAwareInterface; |
|
15 | 14 | use Slick\Form\InputInterface; |
15 | +use Slick\Form\Input\ValidationAwareInterface; |
|
16 | 16 | use Slick\Form\Renderer\FieldSet as FieldSetRenderer; |
17 | 17 | use Slick\Form\Renderer\RendererInterface; |
18 | 18 |
@@ -9,9 +9,9 @@ |
||
9 | 9 | |
10 | 10 | namespace Slick\Form\Input; |
11 | 11 | |
12 | +use Slick\Form\ElementInterface; |
|
12 | 13 | use Slick\Form\Element\AbstractElement; |
13 | 14 | use Slick\Form\Element\Label; |
14 | -use Slick\Form\ElementInterface; |
|
15 | 15 | use Slick\Form\Exception\InvalidArgumentException; |
16 | 16 | use Slick\Form\InputInterface; |
17 | 17 | use Slick\Form\Renderer\Input; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * Get input name |
71 | 71 | * |
72 | - * @return mixed |
|
72 | + * @return string |
|
73 | 73 | */ |
74 | 74 | public function getName() |
75 | 75 | { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * |
147 | 147 | * @param mixed $value |
148 | 148 | * |
149 | - * @return mixed |
|
149 | + * @return AbstractInput |
|
150 | 150 | */ |
151 | 151 | public function setValue($value) |
152 | 152 | { |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | /** |
282 | 282 | * If input is multiple get the instance value of it |
283 | 283 | * |
284 | - * @return mixed |
|
284 | + * @return string|null |
|
285 | 285 | */ |
286 | 286 | public function getInstanceValue() |
287 | 287 | { |
@@ -9,12 +9,12 @@ |
||
9 | 9 | |
10 | 10 | namespace Slick\Form\Input; |
11 | 11 | |
12 | +use Slick\Filter\Exception as FilterException; |
|
12 | 13 | use Slick\Filter\FilterChain; |
13 | 14 | use Slick\Filter\FilterChainInterface; |
14 | 15 | use Slick\Filter\FilterInterface; |
15 | 16 | use Slick\Filter\StaticFilter; |
16 | 17 | use Slick\Form\Exception\InvalidArgumentException; |
17 | -use Slick\Filter\Exception as FilterException; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Implementation for FilterAwareInterface |
@@ -12,12 +12,12 @@ |
||
12 | 12 | use Slick\Form\ElementInterface; |
13 | 13 | use Slick\Form\Exception\InvalidArgumentException; |
14 | 14 | use Slick\Form\InputInterface; |
15 | +use Slick\Validator\Exception as ValidatorException; |
|
15 | 16 | use Slick\Validator\NotEmpty; |
16 | 17 | use Slick\Validator\StaticValidator; |
17 | 18 | use Slick\Validator\ValidationChain; |
18 | 19 | use Slick\Validator\ValidationChainInterface; |
19 | 20 | use Slick\Validator\ValidatorInterface; |
20 | -use Slick\Validator\Exception as ValidatorException; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Implementation for ValidationAwareInterface |
@@ -129,7 +129,7 @@ |
||
129 | 129 | /** |
130 | 130 | * Sets definition data for form creation |
131 | 131 | * |
132 | - * @param mixed $definitions |
|
132 | + * @param string $definitions |
|
133 | 133 | * |
134 | 134 | * @return self|$this|ParserInterface |
135 | 135 | */ |
@@ -10,6 +10,7 @@ discard block |
||
10 | 10 | namespace Slick\Form\Parser\Worker; |
11 | 11 | |
12 | 12 | use Slick\Filter\StaticFilter; |
13 | +use Slick\Form\ElementInterface; |
|
13 | 14 | use Slick\Form\Element\Button; |
14 | 15 | use Slick\Form\Element\ChoiceAwareElementInterface; |
15 | 16 | use Slick\Form\Element\ContainerInterface; |
@@ -17,8 +18,8 @@ discard block |
||
17 | 18 | use Slick\Form\Element\Label; |
18 | 19 | use Slick\Form\Element\Reset; |
19 | 20 | use Slick\Form\Element\Submit; |
20 | -use Slick\Form\ElementInterface; |
|
21 | 21 | use Slick\Form\Exception\InvalidArgumentException; |
22 | +use Slick\Form\InputInterface; |
|
22 | 23 | use Slick\Form\Input\Checkbox; |
23 | 24 | use Slick\Form\Input\File; |
24 | 25 | use Slick\Form\Input\Filter\Boolean; |
@@ -27,7 +28,6 @@ discard block |
||
27 | 28 | use Slick\Form\Input\Select; |
28 | 29 | use Slick\Form\Input\Text; |
29 | 30 | use Slick\Form\Input\TextArea; |
30 | -use Slick\Form\InputInterface; |
|
31 | 31 | use Slick\Form\Parser\WorkerInterface; |
32 | 32 | |
33 | 33 | /** |