@@ -63,7 +63,7 @@ |
||
63 | 63 | * |
64 | 64 | * @param bool $showLabel |
65 | 65 | * |
66 | - * @return mixed |
|
66 | + * @return string |
|
67 | 67 | */ |
68 | 68 | public function getHTML ($showLabel = true) |
69 | 69 | { |
@@ -143,6 +143,9 @@ discard block |
||
143 | 143 | return $this; |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $slug |
|
148 | + */ |
|
146 | 149 | public function getDataFieldName ($slug) |
147 | 150 | { |
148 | 151 | return $this->getGlobalSlug() . '-data-' . $slug; |
@@ -169,6 +172,9 @@ discard block |
||
169 | 172 | return null; |
170 | 173 | } |
171 | 174 | |
175 | + /** |
|
176 | + * @param string $key |
|
177 | + */ |
|
172 | 178 | public function getValue ($key, $default = '') |
173 | 179 | { |
174 | 180 | return $this->method->getValue($key, $default); |
@@ -251,6 +257,9 @@ discard block |
||
251 | 257 | return $openingTag . $this->getScript() . $closingTag; |
252 | 258 | } |
253 | 259 | |
260 | + /** |
|
261 | + * @param string $errorMsg |
|
262 | + */ |
|
254 | 263 | public function renderFormError ($errorMsg) |
255 | 264 | { |
256 | 265 | return sprintf("<div class=\"form-error card red white\"><div class=\"card-content red-text text-darken-4\">%s</div></div>", $errorMsg); |
@@ -12,6 +12,10 @@ |
||
12 | 12 | private $openIbanUsername, |
13 | 13 | $openIbanPassword; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $openIbanUsername |
|
17 | + * @param string $openIbanPassword |
|
18 | + */ |
|
15 | 19 | function __construct ($openIbanUsername = null, $openIbanPassword = null) |
16 | 20 | { |
17 | 21 | $this->openIbanUsername = $openIbanUsername; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @param string $errorMsg Error message to show if this validator returns false |
16 | - * @param array $inflictsFields Array of fields to be marked "invalid" upon rendering the form if this validator |
|
16 | + * @param \fieldwork\components\RadioSelect[] $inflictsFields Array of fields to be marked "invalid" upon rendering the form if this validator |
|
17 | 17 | * evaluates to false |
18 | 18 | */ |
19 | 19 | public function __construct ($errorMsg, array $inflictsFields = array()) |