8000 Fixed `@return self` with `$this` in FormConfigBuilderInterface by wouterj · Pull Request #21137 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Fixed @return self with $this in FormConfigBuilderInterface #21137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions src/Symfony/Component/Form/FormConfigBuilderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
* with a higher priority are called before
* listeners with a lower priority.
*
* @return self The configuration object
* @return $this The configuration object
*/
public function addEventListener($eventName, $listener, $priority = 0);

Expand All @@ -37,7 +37,7 @@ public function addEventListener($eventName, $listener, $priority = 0);
*
* @param EventSubscriberInterface $subscriber The subscriber to attach
*
* @return self The configuration object
* @return $this The configuration object
*/
public function addEventSubscriber(EventSubscriberInterface $subscriber);

Expand All @@ -52,14 +52,14 @@ public function addEventSubscriber(EventSubscriberInterface $subscriber);
* @param DataTransformerInterface $viewTransformer
* @param bool $forcePrepend if set to true, prepend instead of appending
*
* @return self The configuration object
* @return $this The configuration object
*/
public function addViewTransformer(DataTransformerInterface $viewTransformer, $forcePrepend = false);

/**
* Clears the view transformers.
*
* @return self The configuration object
* @return $this The configuration object
*/
public function resetViewTransformers();

Expand All @@ -74,14 +74,14 @@ public function resetViewTransformers();
* @param DataTransformerInterface $modelTransformer
* @param bool $forceAppend if set to true, append instead of prepending
*
* @return self The configuration object
* @return $this The configuration object
*/
public function addModelTransformer(DataTransformerInterface $modelTransformer, $forceAppend = false);

/**
* Clears the normalization transformers.
*
* @return self The configuration object
* @return $this The configuration object
*/
public function resetModelTransformers();

Expand All @@ -91,7 +91,7 @@ public function resetModelTransformers();
* @param string $name The name of the attribute
* @param mixed $value The value of the attribute
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setAttribute($name, $value);

Expand All @@ -100,7 +100,7 @@ public function setAttribute($name, $value);
*
* @param array $attributes The attributes
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setAttributes(array $attributes);

Expand All @@ -109,7 +109,7 @@ public function setAttributes(array $attributes);
*
* @param DataMapperInterface $dataMapper
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setDataMapper(DataMapperInterface $dataMapper = null);

Expand All @@ -118,7 +118,7 @@ public function setDataMapper(DataMapperInterface $dataMapper = null);
*
* @param bool $disabled Whether the form is disabled
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setDisabled($disabled);

Expand All @@ -127,7 +127,7 @@ public function setDisabled($disabled);
*
* @param mixed $emptyData The empty data
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setEmptyData($emptyData);

Expand All @@ -136,7 +136,7 @@ public function setEmptyData($emptyData);
*
* @param bool $errorBubbling
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setErrorBubbling($errorBubbling);

Expand All @@ -145,7 +145,7 @@ public function setErrorBubbling($errorBubbling);
*
* @param bool $required
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setRequired($required);

Expand All @@ -156,7 +156,7 @@ public function setRequired($required);
* The property path or null if the path should be set
* automatically based on the form's name.
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setPropertyPath($propertyPath);

Expand All @@ -166,7 +166,7 @@ public function setPropertyPath($propertyPath);
*
* @param bool $mapped Whether the form should be mapped
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setMapped($mapped);

Expand All @@ -176,7 +176,7 @@ public function setMapped($mapped);
* @param bool $byReference Whether the data should be
* modified by reference.
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setByReference($byReference);

Expand All @@ -185,7 +185,7 @@ public function setByReference($byReference);
*
* @param bool $inheritData Whether the form should inherit its parent's data
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setInheritData($inheritData);

Expand All @@ -194,7 +194,7 @@ public function setInheritData($inheritData);
*
* @param bool $compound Whether the form should be compound
*
* @return self The configuration object
* @return $this The configuration object
*
* @see FormConfigInterface::getCompound()
*/
Expand All @@ -205,7 +205,7 @@ public function setCompound($compound);
*
* @param ResolvedFormTypeInterface $type The type of the form
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setType(ResolvedFormTypeInterface $type);

Expand All @@ -214,7 +214,7 @@ public function setType(ResolvedFormTypeInterface $type);
*
* @param mixed $data The data of the form in application format
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setData($data);

Expand All @@ -227,7 +227,7 @@ public function setData($data);
*
* @param bool $locked Whether to lock the default data
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setDataLocked($locked);

Expand All @@ -243,7 +243,7 @@ public function setFormFactory(FormFactoryInterface $formFactory);
*
* @param string $action The target URL of the form
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setAction($action);

Expand All @@ -252,7 +252,7 @@ public function setAction($action);
*
* @param string $method The HTTP method of the form
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setMethod($method);

Expand All @@ -261,7 +261,7 @@ public function setMethod($method);
*
* @param RequestHandlerInterface $requestHandler
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setRequestHandler(RequestHandlerInterface $requestHandler);

Expand All @@ -275,7 +275,7 @@ public function setRequestHandler(RequestHandlerInterface $requestHandler);
* In the second case, you need to call
* {@link FormInterface::initialize()} manually.
*
* @return self The configuration object
* @return $this The configuration object
*/
public function setAutoInitialize($initialize);

Expand Down
0