@@ -25,7 +25,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
2525 *
2626 * @param FormInterface|null $parent The parent form or null if it's the root
2727 *
28- * @return FormInterface The form instance
28+ * @return self
2929 *
3030 * @throws Exception\AlreadySubmittedException If the form has already been submitted.
3131 * @throws Exception\LogicException When trying to set a parent for a form with
@@ -36,7 +36,7 @@ public function setParent(FormInterface $parent = null);
3636 /**
3737 * Returns the parent form.
3838 *
39- * @return FormInterface |null The parent form or null if there is none
39+ * @return self |null The parent form or null if there is none
4040 */
4141 public function getParent ();
4242
@@ -47,7 +47,7 @@ public function getParent();
4747 * @param string|null $type The child's type, if a name was passed
4848 * @param array $options The child's options, if a name was passed
4949 *
50- * @return FormInterface The form instance
50+ * @return self
5151 *
5252 * @throws Exception\AlreadySubmittedException If the form has already been submitted.
5353 * @throws Exception\LogicException When trying to add a child to a non-compound form.
@@ -60,7 +60,7 @@ public function add($child, $type = null, array $options = array());
6060 *
6161 * @param string $name The name of the child
6262 *
63- * @return FormInterface The child form
63+ * @return self
6464 *
6565 * @throws \OutOfBoundsException If the named child does not exist.
6666 */
@@ -80,7 +80,7 @@ public function has($name);
8080 *
8181 * @param string $name The name of the child to remove
8282 *
83- * @return FormInterface The form instance
83+ * @return $this
8484 *
8585 * @throws Exception\AlreadySubmittedException If the form has already been submitted.
8686 */
@@ -89,7 +89,7 @@ public function remove($name);
8989 /**
9090 * Returns all children in this group.
9191 *
92- * @return FormInterface[] An array of FormInterface instances
92+ * @return self[]
9393 */
9494 public function all ();
9595
@@ -110,7 +110,7 @@ public function getErrors($deep = false, $flatten = true);
110110 *
111111 * @param mixed $modelData The data formatted as expected for the underlying object
112112 *
113- * @return FormInterface The form instance
113+ * @return $this
114114 *
115115 * @throws Exception\AlreadySubmittedException If the form has already been submitted.
116116 * @throws Exception\LogicException If listeners try to call setData in a cycle. Or if
@@ -182,7 +182,7 @@ public function getPropertyPath();
182182 *
183183 * @param FormError $error
184184 *
185- * @return FormInterface The form instance
185+ * @return $this
186186 */
187187 public function addError (FormError $ error );
188188
@@ -248,7 +248,7 @@ public function getTransformationFailure();
248248 *
249249 * Should be called on the root form after constructing the tree.
250250 *
251- * @return FormInterface The form instance
251+ * @return $this
252252 */
253253 public function initialize ();
254254
@@ -262,7 +262,7 @@ public function initialize();
262262 *
263263 * @param mixed $request The request to handle
264264 *
265- * @return FormInterface The form instance
265+ * @return $this
266266 */
267267 public function handleRequest ($ request = null );
268268
@@ -274,7 +274,7 @@ public function handleRequest($request = null);
274274 * when they are missing in the
275275 * submitted data.
276276 *
277- * @return FormInterface The form instance
277+ * @return $this
278278 *
279279 * @throws Exception\AlreadySubmittedException If the form has already been submitted.
280280 */
@@ -283,7 +283,7 @@ public function submit($submittedData, $clearMissing = true);
283283 /**
284284 * Returns the root of the form tree.
285285 *
286- * @return FormInterface The root of the tree
286+ * @return self The root of the tree
287287 */
288288 public function getRoot ();
289289
0 commit comments