Fixed @return self
with $this
This commit is contained in:
parent
770ed8d44e
commit
505e84d9f3
@ -28,7 +28,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* with a higher priority are called before
|
* with a higher priority are called before
|
||||||
* listeners with a lower priority.
|
* listeners with a lower priority.
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function addEventListener($eventName, $listener, $priority = 0);
|
public function addEventListener($eventName, $listener, $priority = 0);
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param EventSubscriberInterface $subscriber The subscriber to attach
|
* @param EventSubscriberInterface $subscriber The subscriber to attach
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function addEventSubscriber(EventSubscriberInterface $subscriber);
|
public function addEventSubscriber(EventSubscriberInterface $subscriber);
|
||||||
|
|
||||||
@ -52,14 +52,14 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* @param DataTransformerInterface $viewTransformer
|
* @param DataTransformerInterface $viewTransformer
|
||||||
* @param bool $forcePrepend if set to true, prepend instead of appending
|
* @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);
|
public function addViewTransformer(DataTransformerInterface $viewTransformer, $forcePrepend = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears the view transformers.
|
* Clears the view transformers.
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function resetViewTransformers();
|
public function resetViewTransformers();
|
||||||
|
|
||||||
@ -74,14 +74,14 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* @param DataTransformerInterface $modelTransformer
|
* @param DataTransformerInterface $modelTransformer
|
||||||
* @param bool $forceAppend if set to true, append instead of prepending
|
* @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);
|
public function addModelTransformer(DataTransformerInterface $modelTransformer, $forceAppend = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears the normalization transformers.
|
* Clears the normalization transformers.
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function resetModelTransformers();
|
public function resetModelTransformers();
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* @param string $name The name of the attribute
|
* @param string $name The name of the attribute
|
||||||
* @param mixed $value The value 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);
|
public function setAttribute($name, $value);
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param array $attributes The attributes
|
* @param array $attributes The attributes
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setAttributes(array $attributes);
|
public function setAttributes(array $attributes);
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param DataMapperInterface $dataMapper
|
* @param DataMapperInterface $dataMapper
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setDataMapper(DataMapperInterface $dataMapper = null);
|
public function setDataMapper(DataMapperInterface $dataMapper = null);
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param bool $disabled Whether the form is disabled
|
* @param bool $disabled Whether the form is disabled
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setDisabled($disabled);
|
public function setDisabled($disabled);
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param mixed $emptyData The empty data
|
* @param mixed $emptyData The empty data
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setEmptyData($emptyData);
|
public function setEmptyData($emptyData);
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param bool $errorBubbling
|
* @param bool $errorBubbling
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setErrorBubbling($errorBubbling);
|
public function setErrorBubbling($errorBubbling);
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param bool $required
|
* @param bool $required
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setRequired($required);
|
public function setRequired($required);
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* The property path or null if the path should be set
|
* The property path or null if the path should be set
|
||||||
* automatically based on the form's name.
|
* automatically based on the form's name.
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setPropertyPath($propertyPath);
|
public function setPropertyPath($propertyPath);
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param bool $mapped Whether the form should be mapped
|
* @param bool $mapped Whether the form should be mapped
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setMapped($mapped);
|
public function setMapped($mapped);
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* @param bool $byReference Whether the data should be
|
* @param bool $byReference Whether the data should be
|
||||||
* modified by reference.
|
* modified by reference.
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setByReference($byReference);
|
public function setByReference($byReference);
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param bool $inheritData Whether the form should inherit its parent's data
|
* @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);
|
public function setInheritData($inheritData);
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param bool $compound Whether the form should be compound
|
* @param bool $compound Whether the form should be compound
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*
|
*
|
||||||
* @see FormConfigInterface::getCompound()
|
* @see FormConfigInterface::getCompound()
|
||||||
*/
|
*/
|
||||||
@ -205,7 +205,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param ResolvedFormTypeInterface $type The type of the form
|
* @param ResolvedFormTypeInterface $type The type of the form
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setType(ResolvedFormTypeInterface $type);
|
public function setType(ResolvedFormTypeInterface $type);
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param mixed $data The data of the form in application format
|
* @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);
|
public function setData($data);
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param bool $locked Whether to lock the default data
|
* @param bool $locked Whether to lock the default data
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setDataLocked($locked);
|
public function setDataLocked($locked);
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param string $action The target URL of the form
|
* @param string $action The target URL of the form
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setAction($action);
|
public function setAction($action);
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param string $method The HTTP method of the form
|
* @param string $method The HTTP method of the form
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setMethod($method);
|
public function setMethod($method);
|
||||||
|
|
||||||
@ -261,7 +261,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
*
|
*
|
||||||
* @param RequestHandlerInterface $requestHandler
|
* @param RequestHandlerInterface $requestHandler
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setRequestHandler(RequestHandlerInterface $requestHandler);
|
public function setRequestHandler(RequestHandlerInterface $requestHandler);
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* In the second case, you need to call
|
* In the second case, you need to call
|
||||||
* {@link FormInterface::initialize()} manually.
|
* {@link FormInterface::initialize()} manually.
|
||||||
*
|
*
|
||||||
* @return self The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
public function setAutoInitialize($initialize);
|
public function setAutoInitialize($initialize);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user