@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | 113 | * @param FactoryInterface $factory A factory, to create customized form gorup objects. |
| 114 | - * @return FormInterface Chainable |
|
| 114 | + * @return FormTrait Chainable |
|
| 115 | 115 | */ |
| 116 | 116 | public function setFormGroupFactory(FactoryInterface $factory) |
| 117 | 117 | { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | 139 | * @param callable $cb The group callback. |
| 140 | - * @return FormInterface Chainable |
|
| 140 | + * @return FormTrait Chainable |
|
| 141 | 141 | */ |
| 142 | 142 | public function setGroupCallback(callable $cb) |
| 143 | 143 | { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | /** |
| 150 | 150 | * @param string $action The "action" value, typically a URL. |
| 151 | 151 | * @throws InvalidArgumentException If the action argument is not a string. |
| 152 | - * @return FormInterface Chainable |
|
| 152 | + * @return FormTrait Chainable |
|
| 153 | 153 | */ |
| 154 | 154 | public function setAction($action) |
| 155 | 155 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * |
| 177 | 177 | * @param string $method Either "post" or "get". |
| 178 | 178 | * @throws InvalidArgumentException If the method is not post or get. |
| 179 | - * @return FormInterface Chainable |
|
| 179 | + * @return FormTrait Chainable |
|
| 180 | 180 | */ |
| 181 | 181 | public function setMethod($method) |
| 182 | 182 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * @param string $mode The l10n mode. |
| 204 | - * @return FormInterface Chainable |
|
| 204 | + * @return FormTrait Chainable |
|
| 205 | 205 | */ |
| 206 | 206 | public function setL10nMode($mode) |
| 207 | 207 | { |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * Set the object's form groups. |
| 223 | 223 | * |
| 224 | 224 | * @param array $groups A collection of group structures. |
| 225 | - * @return FormInterface Chainable |
|
| 225 | + * @return FormTrait Chainable |
|
| 226 | 226 | */ |
| 227 | 227 | public function setGroups(array $groups) |
| 228 | 228 | { |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * @param string $groupIdent The group identifier. |
| 280 | 280 | * @param array|FormGroupInterface $group The group object or structure. |
| 281 | 281 | * @throws InvalidArgumentException If the identifier is not a string or the group is invalid. |
| 282 | - * @return FormInterface Chainable |
|
| 282 | + * @return FormTrait Chainable |
|
| 283 | 283 | */ |
| 284 | 284 | public function addGroup($groupIdent, $group) |
| 285 | 285 | { |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | * Retrieve the form groups. |
| 400 | 400 | * |
| 401 | 401 | * @param callable $groupCallback Optional callback applied to each form group. |
| 402 | - * @return FormGroupInterface[]|Generator |
|
| 402 | + * @return \Generator |
|
| 403 | 403 | */ |
| 404 | 404 | public function groups(callable $groupCallback = null) |
| 405 | 405 | { |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | * |
| 521 | 521 | * @param string $mode Group display mode. |
| 522 | 522 | * @throws InvalidArgumentException If the display mode is not a string. |
| 523 | - * @return ObjectFormWidget Chainable. |
|
| 523 | + * @return FormTrait Chainable. |
|
| 524 | 524 | */ |
| 525 | 525 | public function setGroupDisplayMode($mode) |
| 526 | 526 | { |
@@ -561,7 +561,7 @@ discard block |
||
| 561 | 561 | |
| 562 | 562 | /** |
| 563 | 563 | * @param array $formData The (pre-populated) form data, as [$key=>$val] array. |
| 564 | - * @return FormInterface Chainable |
|
| 564 | + * @return FormTrait Chainable |
|
| 565 | 565 | */ |
| 566 | 566 | public function setFormData(array $formData) |
| 567 | 567 | { |
@@ -574,7 +574,7 @@ discard block |
||
| 574 | 574 | * @param string $key The form data key, or poperty identifier. |
| 575 | 575 | * @param mixed $val The form data value, for a given key. |
| 576 | 576 | * @throws InvalidArgumentException If the key argument is not a string. |
| 577 | - * @return FormInterface Chainable |
|
| 577 | + * @return FormTrait Chainable |
|
| 578 | 578 | */ |
| 579 | 579 | public function addFormData($key, $val) |
| 580 | 580 | { |
@@ -597,7 +597,7 @@ discard block |
||
| 597 | 597 | } |
| 598 | 598 | |
| 599 | 599 | /** |
| 600 | - * @return FormWidget |
|
| 600 | + * @return FormTrait |
|
| 601 | 601 | */ |
| 602 | 602 | protected function formWidget() |
| 603 | 603 | { |