From 3c0693de23ea30c1a54ff7179ebf3168e1328793 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 26 Dec 2016 08:50:27 +0100 Subject: [PATCH] fixed @return when returning this or static --- src/Symfony/Bridge/Twig/NodeVisitor/Scope.php | 6 +- src/Symfony/Component/BrowserKit/Cookie.php | 2 +- .../Builder/ArrayNodeDefinition.php | 26 ++++---- .../Definition/Builder/EnumNodeDefinition.php | 2 +- .../Config/Definition/Builder/ExprBuilder.php | 22 +++---- .../Definition/Builder/MergeBuilder.php | 4 +- .../Config/Definition/Builder/NodeBuilder.php | 6 +- .../Definition/Builder/NodeDefinition.php | 28 ++++----- .../Builder/NormalizationBuilder.php | 4 +- .../Builder/NumericNodeDefinition.php | 4 +- .../Component/Config/Loader/Loader.php | 2 +- src/Symfony/Component/Console/Application.php | 2 +- .../Component/Console/Command/Command.php | 20 +++--- .../Console/Formatter/OutputFormatter.php | 2 +- .../Formatter/OutputFormatterStyleStack.php | 2 +- .../Console/Helper/DescriptorHelper.php | 2 +- .../Component/Console/Helper/Helper.php | 2 +- .../Component/Console/Helper/Table.php | 4 +- .../Component/Console/Helper/TableHelper.php | 20 +++--- .../Component/Console/Helper/TableStyle.php | 18 +++--- .../Console/Question/ChoiceQuestion.php | 6 +- .../Component/Console/Question/Question.php | 12 ++-- .../Exception/SyntaxErrorException.php | 10 +-- .../CssSelector/Node/Specificity.php | 2 +- .../CssSelector/Parser/TokenStream.php | 4 +- .../XPath/Extension/NodeExtension.php | 2 +- .../CssSelector/XPath/Translator.php | 4 +- .../Component/CssSelector/XPath/XPathExpr.php | 8 +-- .../Component/Debug/ExceptionHandler.php | 2 +- .../Compiler/ServiceReferenceGraph.php | 4 +- .../DependencyInjection/ContainerBuilder.php | 12 ++-- .../DependencyInjection/Definition.php | 48 +++++++------- .../DefinitionDecorator.php | 2 +- src/Symfony/Component/DomCrawler/Crawler.php | 30 ++++----- src/Symfony/Component/DomCrawler/Form.php | 4 +- .../DomCrawler/FormFieldRegistry.php | 2 +- .../Component/EventDispatcher/Event.php | 2 +- .../EventDispatcher/GenericEvent.php | 4 +- .../Component/ExpressionLanguage/Compiler.php | 8 +-- .../Finder/Adapter/AdapterInterface.php | 30 ++++----- .../Finder/Expression/Expression.php | 2 +- .../Component/Finder/Expression/Regex.php | 16 ++--- .../Finder/Expression/ValueInterface.php | 4 +- src/Symfony/Component/Finder/Finder.php | 62 +++++++++---------- .../Component/Finder/Shell/Command.php | 20 +++--- src/Symfony/Component/Form/Button.php | 2 +- src/Symfony/Component/Form/ButtonBuilder.php | 6 +- src/Symfony/Component/Form/FormBuilder.php | 2 +- .../Component/Form/FormBuilderInterface.php | 8 +-- .../Component/Form/FormConfigBuilder.php | 4 +- .../Form/FormFactoryBuilderInterface.php | 18 +++--- src/Symfony/Component/Form/FormInterface.php | 24 +++---- src/Symfony/Component/Form/FormView.php | 4 +- src/Symfony/Component/Form/Guess/Guess.php | 2 +- src/Symfony/Component/Form/SubmitButton.php | 2 +- .../Component/HttpFoundation/AcceptHeader.php | 6 +- .../HttpFoundation/AcceptHeaderItem.php | 10 +-- .../HttpFoundation/BinaryFileResponse.php | 8 +-- .../Component/HttpFoundation/File/File.php | 2 +- .../File/MimeType/ExtensionGuesser.php | 2 +- .../File/MimeType/MimeTypeGuesser.php | 2 +- .../Component/HttpFoundation/JsonResponse.php | 10 +-- .../HttpFoundation/RedirectResponse.php | 2 +- .../Component/HttpFoundation/Request.php | 6 +- .../Component/HttpFoundation/Response.php | 46 +++++++------- .../HttpFoundation/StreamedResponse.php | 2 +- .../Component/HttpKernel/Profiler/Profile.php | 10 +-- .../Component/Intl/Collator/Collator.php | 2 +- .../Intl/DateFormatter/IntlDateFormatter.php | 2 +- .../Intl/NumberFormatter/NumberFormatter.php | 2 +- .../Component/Intl/Util/SvnRepository.php | 2 +- .../OptionsResolver/OptionsResolver.php | 24 +++---- .../OptionsResolverInterface.php | 18 +++--- .../Component/Process/Pipes/UnixPipes.php | 2 +- .../Component/Process/Pipes/WindowsPipes.php | 2 +- src/Symfony/Component/Process/Process.php | 12 ++-- .../Component/Process/ProcessBuilder.php | 26 ++++---- .../PropertyAccess/PropertyAccess.php | 6 +- .../PropertyAccessorBuilder.php | 8 +-- .../Matcher/Dumper/DumperCollection.php | 2 +- .../Matcher/Dumper/DumperPrefixCollection.php | 2 +- .../Component/Routing/RequestContext.php | 22 +++---- src/Symfony/Component/Routing/Route.php | 30 ++++----- .../Security/Acl/Domain/ObjectIdentity.php | 2 +- .../Acl/Domain/UserSecurityIdentity.php | 4 +- .../Acl/Permission/MaskBuilderInterface.php | 8 +-- src/Symfony/Component/Stopwatch/Section.php | 4 +- src/Symfony/Component/Stopwatch/Stopwatch.php | 10 +-- .../Component/Stopwatch/StopwatchEvent.php | 6 +- .../Templating/TemplateReferenceInterface.php | 2 +- .../Translation/MessageCatalogueInterface.php | 6 +- .../Validator/Mapping/ClassMetadata.php | 10 +-- .../Validator/Mapping/GenericMetadata.php | 4 +- .../ContextualValidatorInterface.php | 8 +-- .../Validator/ValidatorBuilderInterface.php | 34 +++++----- .../ConstraintViolationBuilderInterface.php | 16 ++--- 96 files changed, 465 insertions(+), 467 deletions(-) diff --git a/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php b/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php index f9333bf683d1..1284cf52a20b 100644 --- a/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php +++ b/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php @@ -42,7 +42,7 @@ public function __construct(Scope $parent = null) /** * Opens a new child scope. * - * @return Scope + * @return self */ public function enter() { @@ -52,7 +52,7 @@ public function enter() /** * Closes current scope and returns parent one. * - * @return Scope|null + * @return self|null */ public function leave() { @@ -67,7 +67,7 @@ public function leave() * @param string $key * @param mixed $value * - * @return Scope Current scope + * @return $this * * @throws \LogicException */ diff --git a/src/Symfony/Component/BrowserKit/Cookie.php b/src/Symfony/Component/BrowserKit/Cookie.php index eeef805d7209..7e855bf351da 100644 --- a/src/Symfony/Component/BrowserKit/Cookie.php +++ b/src/Symfony/Component/BrowserKit/Cookie.php @@ -121,7 +121,7 @@ public function __toString() * @param string $cookie A Set-Cookie header value * @param string $url The base URL * - * @return Cookie A Cookie instance + * @return static * * @throws \InvalidArgumentException */ diff --git a/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php index c78e49240018..03bb0cfdeeb3 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php @@ -85,7 +85,7 @@ public function prototype($type) * If this function has been called and the node is not set during the finalization * phase, it's default value will be derived from its children default values. * - * @return ArrayNodeDefinition + * @return $this */ public function addDefaultsIfNotSet() { @@ -101,7 +101,7 @@ public function addDefaultsIfNotSet() * * This method is applicable to prototype nodes only. * - * @return ArrayNodeDefinition + * @return $this */ public function addDefaultChildrenIfNoneSet($children = null) { @@ -115,7 +115,7 @@ public function addDefaultChildrenIfNoneSet($children = null) * * This method is applicable to prototype nodes only. * - * @return ArrayNodeDefinition + * @return $this */ public function requiresAtLeastOneElement() { @@ -129,7 +129,7 @@ public function requiresAtLeastOneElement() * * If used all keys have to be defined in the same configuration file. * - * @return ArrayNodeDefinition + * @return $this */ public function disallowNewKeysInSubsequentConfigs() { @@ -144,7 +144,7 @@ public function disallowNewKeysInSubsequentConfigs() * @param string $singular The key to remap * @param string $plural The plural of the key for irregular plurals * - * @return ArrayNodeDefinition + * @return $this */ public function fixXmlConfig($singular, $plural = null) { @@ -179,7 +179,7 @@ public function fixXmlConfig($singular, $plural = null) * @param string $name The name of the key * @param bool $removeKeyItem Whether or not the key item should be removed * - * @return ArrayNodeDefinition + * @return $this */ public function useAttributeAsKey($name, $removeKeyItem = true) { @@ -194,7 +194,7 @@ public function useAttributeAsKey($name, $removeKeyItem = true) * * @param bool $allow * - * @return ArrayNodeDefinition + * @return $this */ public function canBeUnset($allow = true) { @@ -216,7 +216,7 @@ public function canBeUnset($allow = true) * enableableArrayNode: {enabled: false, ...} # The config is disabled * enableableArrayNode: false # The config is disabled * - * @return ArrayNodeDefinition + * @return $this */ public function canBeEnabled() { @@ -246,7 +246,7 @@ public function canBeEnabled() * * By default, the section is enabled. * - * @return ArrayNodeDefinition + * @return $this */ public function canBeDisabled() { @@ -266,7 +266,7 @@ public function canBeDisabled() /** * Disables the deep merging of the node. * - * @return ArrayNodeDefinition + * @return $this */ public function performNoDeepMerging() { @@ -284,7 +284,7 @@ public function performNoDeepMerging() * you want to send an entire configuration array through a special * tree that processes only part of the array. * - * @return ArrayNodeDefinition + * @return $this */ public function ignoreExtraKeys() { @@ -298,7 +298,7 @@ public function ignoreExtraKeys() * * @param bool $bool Whether to enable key normalization * - * @return ArrayNodeDefinition + * @return $this */ public function normalizeKeys($bool) { @@ -320,7 +320,7 @@ public function normalizeKeys($bool) * * @param NodeDefinition $node A NodeDefinition instance * - * @return ArrayNodeDefinition This node + * @return $this */ public function append(NodeDefinition $node) { diff --git a/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php index dc25fcbd26f2..97f67094625c 100644 --- a/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php @@ -25,7 +25,7 @@ class EnumNodeDefinition extends ScalarNodeDefinition /** * @param array $values * - * @return EnumNodeDefinition|$this + * @return $this */ public function values(array $values) { diff --git a/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php b/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php index 3d79b2985874..45878c02fb70 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php @@ -40,7 +40,7 @@ public function __construct(NodeDefinition $node) * * @param \Closure $then * - * @return ExprBuilder + * @return $this */ public function always(\Closure $then = null) { @@ -60,7 +60,7 @@ public function always(\Closure $then = null) * * @param \Closure $closure * - * @return ExprBuilder + * @return $this */ public function ifTrue(\Closure $closure = null) { @@ -76,7 +76,7 @@ public function ifTrue(\Closure $closure = null) /** * Tests if the value is a string. * - * @return ExprBuilder + * @return $this */ public function ifString() { @@ -88,7 +88,7 @@ public function ifString() /** * Tests if the value is null. * - * @return ExprBuilder + * @return $this */ public function ifNull() { @@ -100,7 +100,7 @@ public function ifNull() /** * Tests if the value is an array. * - * @return ExprBuilder + * @return $this */ public function ifArray() { @@ -114,7 +114,7 @@ public function ifArray() * * @param array $array * - * @return ExprBuilder + * @return $this */ public function ifInArray(array $array) { @@ -128,7 +128,7 @@ public function ifInArray(array $array) * * @param array $array * - * @return ExprBuilder + * @return $this */ public function ifNotInArray(array $array) { @@ -142,7 +142,7 @@ public function ifNotInArray(array $array) * * @param \Closure $closure * - * @return ExprBuilder + * @return $this */ public function then(\Closure $closure) { @@ -154,7 +154,7 @@ public function then(\Closure $closure) /** * Sets a closure returning an empty array. * - * @return ExprBuilder + * @return $this */ public function thenEmptyArray() { @@ -170,7 +170,7 @@ public function thenEmptyArray() * * @param string $message * - * @return ExprBuilder + * @return $this * * @throws \InvalidArgumentException */ @@ -184,7 +184,7 @@ public function thenInvalid($message) /** * Sets a closure unsetting this key of the array at validation time. * - * @return ExprBuilder + * @return $this * * @throws UnsetKeyException */ diff --git a/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php index f908a499cab2..14240f525124 100644 --- a/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php @@ -37,7 +37,7 @@ public function __construct(NodeDefinition $node) * * @param bool $allow * - * @return MergeBuilder + * @return $this */ public function allowUnset($allow = true) { @@ -51,7 +51,7 @@ public function allowUnset($allow = true) * * @param bool $deny Whether the overwriting is forbidden or not * - * @return MergeBuilder + * @return $this */ public function denyOverwrite($deny = true) { diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php index 2a063f1bd913..e780777a1e83 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php @@ -42,7 +42,7 @@ public function __construct() * * @param ParentNodeDefinitionInterface $parent The parent node * - * @return NodeBuilder This node builder + * @return $this */ public function setParent(ParentNodeDefinitionInterface $parent = null) { @@ -182,7 +182,7 @@ public function node($name, $type) * * @param NodeDefinition $node * - * @return NodeBuilder This node builder + * @return $this */ public function append(NodeDefinition $node) { @@ -207,7 +207,7 @@ public function append(NodeDefinition $node) * @param string $type The name of the type * @param string $class The fully qualified name the node definition class * - * @return NodeBuilder This node builder + * @return $this */ public function setNodeClass($type, $class) { diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php index 4633dc7d2a5a..c8a3a248b4ef 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php @@ -56,7 +56,7 @@ public function __construct($name, NodeParentInterface $parent = null) * * @param NodeParentInterface $parent The parent * - * @return NodeDefinition|$this + * @return $this */ public function setParent(NodeParentInterface $parent) { @@ -70,7 +70,7 @@ public function setParent(NodeParentInterface $parent) * * @param string $info The info text * - * @return NodeDefinition|$this + * @return $this */ public function info($info) { @@ -82,7 +82,7 @@ public function info($info) * * @param string|array $example * - * @return NodeDefinition|$this + * @return $this */ public function example($example) { @@ -95,7 +95,7 @@ public function example($example) * @param string $key * @param mixed $value * - * @return NodeDefinition|$this + * @return $this */ public function attribute($key, $value) { @@ -146,7 +146,7 @@ public function getNode($forceRootNode = false) * * @param mixed $value The default value * - * @return NodeDefinition|$this + * @return $this */ public function defaultValue($value) { @@ -159,7 +159,7 @@ public function defaultValue($value) /** * Sets the node as required. * - * @return NodeDefinition|$this + * @return $this */ public function isRequired() { @@ -173,7 +173,7 @@ public function isRequired() * * @param mixed $value * - * @return NodeDefinition|$this + * @return $this */ public function treatNullLike($value) { @@ -187,7 +187,7 @@ public function treatNullLike($value) * * @param mixed $value * - * @return NodeDefinition|$this + * @return $this */ public function treatTrueLike($value) { @@ -201,7 +201,7 @@ public function treatTrueLike($value) * * @param mixed $value * - * @return NodeDefinition|$this + * @return $this */ public function treatFalseLike($value) { @@ -213,7 +213,7 @@ public function treatFalseLike($value) /** * Sets null as the default value. * - * @return NodeDefinition|$this + * @return $this */ public function defaultNull() { @@ -223,7 +223,7 @@ public function defaultNull() /** * Sets true as the default value. * - * @return NodeDefinition|$this + * @return $this */ public function defaultTrue() { @@ -233,7 +233,7 @@ public function defaultTrue() /** * Sets false as the default value. * - * @return NodeDefinition|$this + * @return $this */ public function defaultFalse() { @@ -253,7 +253,7 @@ public function beforeNormalization() /** * Denies the node value being empty. * - * @return NodeDefinition|$this + * @return $this */ public function cannotBeEmpty() { @@ -281,7 +281,7 @@ public function validate() * * @param bool $deny Whether the overwriting is forbidden or not * - * @return NodeDefinition|$this + * @return $this */ public function cannotBeOverwritten($deny = true) { diff --git a/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php b/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php index 748c9f28cbec..ae642a2d49a2 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php @@ -38,7 +38,7 @@ public function __construct(NodeDefinition $node) * @param string $key The key to remap * @param string $plural The plural of the key in case of irregular plural * - * @return NormalizationBuilder + * @return $this */ public function remap($key, $plural = null) { @@ -52,7 +52,7 @@ public function remap($key, $plural = null) * * @param \Closure $closure * - * @return ExprBuilder|NormalizationBuilder + * @return ExprBuilder|$this */ public function before(\Closure $closure = null) { diff --git a/src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php index ddd716d06a7b..1dd0ce7d2eec 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php @@ -26,7 +26,7 @@ abstract class NumericNodeDefinition extends ScalarNodeDefinition * * @param mixed $max * - * @return NumericNodeDefinition + * @return $this * * @throws \InvalidArgumentException when the constraint is inconsistent */ @@ -45,7 +45,7 @@ public function max($max) * * @param mixed $min * - * @return NumericNodeDefinition + * @return $this * * @throws \InvalidArgumentException when the constraint is inconsistent */ diff --git a/src/Symfony/Component/Config/Loader/Loader.php b/src/Symfony/Component/Config/Loader/Loader.php index de4e127386d8..a6f8d9c66454 100644 --- a/src/Symfony/Component/Config/Loader/Loader.php +++ b/src/Symfony/Component/Config/Loader/Loader.php @@ -57,7 +57,7 @@ public function import($resource, $type = null) * @param mixed $resource A resource * @param string|null $type The resource type or null if unknown * - * @return LoaderInterface A LoaderInterface instance + * @return $this|LoaderInterface * * @throws FileLoaderLoadException If no loader is found */ diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 74de1048bb17..a9351a589720 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -772,7 +772,7 @@ public function getTerminalDimensions() * @param int $width The width * @param int $height The height * - * @return Application The current application + * @return $this */ public function setTerminalDimensions($width, $height) { diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php index 0948d42b5755..9bcfdf79cace 100644 --- a/src/Symfony/Component/Console/Command/Command.php +++ b/src/Symfony/Component/Console/Command/Command.php @@ -265,7 +265,7 @@ public function run(InputInterface $input, OutputInterface $output) * * @param callable $code A callable(InputInterface $input, OutputInterface $output) * - * @return Command The current instance + * @return $this * * @throws \InvalidArgumentException * @@ -314,7 +314,7 @@ public function mergeApplicationDefinition($mergeArgs = true) * * @param array|InputDefinition $definition An array of argument and option instances or a definition instance * - * @return Command The current instance + * @return $this */ public function setDefinition($definition) { @@ -362,7 +362,7 @@ public function getNativeDefinition() * @param string $description A description text * @param mixed $default The default value (for InputArgument::OPTIONAL mode only) * - * @return Command The current instance + * @return $this */ public function addArgument($name, $mode = null, $description = '', $default = null) { @@ -380,7 +380,7 @@ public function addArgument($name, $mode = null, $description = '', $default = n * @param string $description A description text * @param mixed $default The default value (must be null for InputOption::VALUE_NONE) * - * @return Command The current instance + * @return $this */ public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null) { @@ -399,7 +399,7 @@ public function addOption($name, $shortcut = null, $mode = null, $description = * * @param string $name The command name * - * @return Command The current instance + * @return $this * * @throws \InvalidArgumentException When the name is invalid */ @@ -422,7 +422,7 @@ public function setName($name) * * @param string $title The process title * - * @return Command The current instance + * @return $this */ public function setProcessTitle($title) { @@ -446,7 +446,7 @@ public function getName() * * @param string $description The description for the command * - * @return Command The current instance + * @return $this */ public function setDescription($description) { @@ -470,7 +470,7 @@ public function getDescription() * * @param string $help The help for the command * - * @return Command The current instance + * @return $this */ public function setHelp($help) { @@ -516,7 +516,7 @@ public function getProcessedHelp() * * @param string[] $aliases An array of aliases for the command * - * @return Command The current instance + * @return $this * * @throws \InvalidArgumentException When an alias is invalid */ @@ -568,7 +568,7 @@ public function getSynopsis($short = false) * * @param string $usage The usage, it'll be prefixed with the command name * - * @return Command The current instance + * @return $this */ public function addUsage($usage) { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php index e0bbd0670554..22c13d551e5a 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatter.php @@ -206,7 +206,7 @@ public function getStyleStack() * * @param string $string * - * @return OutputFormatterStyle|bool false if string is not format string + * @return OutputFormatterStyle|false false if string is not format string */ private function createStyleFromString($string) { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php b/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php index b64c87fa59d8..e335b0ab64bc 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php @@ -102,7 +102,7 @@ public function getCurrent() /** * @param OutputFormatterStyleInterface $emptyStyle * - * @return OutputFormatterStyleStack + * @return $this */ public function setEmptyStyle(OutputFormatterStyleInterface $emptyStyle) { diff --git a/src/Symfony/Component/Console/Helper/DescriptorHelper.php b/src/Symfony/Component/Console/Helper/DescriptorHelper.php index c324c9945438..6090bbfd006b 100644 --- a/src/Symfony/Component/Console/Helper/DescriptorHelper.php +++ b/src/Symfony/Component/Console/Helper/DescriptorHelper.php @@ -77,7 +77,7 @@ public function describe(OutputInterface $output, $object, array $options = arra * @param string $format * @param DescriptorInterface $descriptor * - * @return DescriptorHelper + * @return $this */ public function register($format, DescriptorInterface $descriptor) { diff --git a/src/Symfony/Component/Console/Helper/Helper.php b/src/Symfony/Component/Console/Helper/Helper.php index 444bbffc768e..90979d5b9d5e 100644 --- a/src/Symfony/Component/Console/Helper/Helper.php +++ b/src/Symfony/Component/Console/Helper/Helper.php @@ -35,7 +35,7 @@ public function setHelperSet(HelperSet $helperSet = null) /** * Gets the helper set associated with this helper. * - * @return HelperSet A HelperSet instance + * @return HelperSet|null */ public function getHelperSet() { diff --git a/src/Symfony/Component/Console/Helper/Table.php b/src/Symfony/Component/Console/Helper/Table.php index 0d947843a996..904c04b6822a 100644 --- a/src/Symfony/Component/Console/Helper/Table.php +++ b/src/Symfony/Component/Console/Helper/Table.php @@ -93,7 +93,7 @@ public static function setStyleDefinition($name, TableStyle $style) * * @param string $name The style name * - * @return TableStyle A TableStyle instance + * @return TableStyle */ public static function getStyleDefinition($name) { @@ -113,7 +113,7 @@ public static function getStyleDefinition($name) * * @param TableStyle|string $name The style name or a TableStyle instance * - * @return Table + * @return $this */ public function setStyle($name) { diff --git a/src/Symfony/Component/Console/Helper/TableHelper.php b/src/Symfony/Component/Console/Helper/TableHelper.php index d76288455a9a..52989c5cfc7f 100644 --- a/src/Symfony/Component/Console/Helper/TableHelper.php +++ b/src/Symfony/Component/Console/Helper/TableHelper.php @@ -48,7 +48,7 @@ public function __construct($triggerDeprecationError = true) * * @param int $layout self::LAYOUT_* * - * @return TableHelper + * @return $this * * @throws \InvalidArgumentException when the table layout is not known */ @@ -114,7 +114,7 @@ public function setRow($column, array $row) * * @param string $paddingChar * - * @return TableHelper + * @return $this */ public function setPaddingChar($paddingChar) { @@ -128,7 +128,7 @@ public function setPaddingChar($paddingChar) * * @param string $horizontalBorderChar * - * @return TableHelper + * @return $this */ public function setHorizontalBorderChar($horizontalBorderChar) { @@ -142,7 +142,7 @@ public function setHorizontalBorderChar($horizontalBorderChar) * * @param string $verticalBorderChar * - * @return TableHelper + * @return $this */ public function setVerticalBorderChar($verticalBorderChar) { @@ -156,7 +156,7 @@ public function setVerticalBorderChar($verticalBorderChar) * * @param string $crossingChar * - * @return TableHelper + * @return $this */ public function setCrossingChar($crossingChar) { @@ -170,7 +170,7 @@ public function setCrossingChar($crossingChar) * * @param string $cellHeaderFormat * - * @return TableHelper + * @return $this */ public function setCellHeaderFormat($cellHeaderFormat) { @@ -184,7 +184,7 @@ public function setCellHeaderFormat($cellHeaderFormat) * * @param string $cellRowFormat * - * @return TableHelper + * @return $this */ public function setCellRowFormat($cellRowFormat) { @@ -198,7 +198,7 @@ public function setCellRowFormat($cellRowFormat) * * @param string $cellRowContentFormat * - * @return TableHelper + * @return $this */ public function setCellRowContentFormat($cellRowContentFormat) { @@ -212,7 +212,7 @@ public function setCellRowContentFormat($cellRowContentFormat) * * @param string $borderFormat * - * @return TableHelper + * @return $this */ public function setBorderFormat($borderFormat) { @@ -226,7 +226,7 @@ public function setBorderFormat($borderFormat) * * @param int $padType STR_PAD_* * - * @return TableHelper + * @return $this */ public function setPadType($padType) { diff --git a/src/Symfony/Component/Console/Helper/TableStyle.php b/src/Symfony/Component/Console/Helper/TableStyle.php index f0f46c71e313..b00f12ea314f 100644 --- a/src/Symfony/Component/Console/Helper/TableStyle.php +++ b/src/Symfony/Component/Console/Helper/TableStyle.php @@ -34,7 +34,7 @@ class TableStyle * * @param string $paddingChar * - * @return TableStyle + * @return $this */ public function setPaddingChar($paddingChar) { @@ -62,7 +62,7 @@ public function getPaddingChar() * * @param string $horizontalBorderChar * - * @return TableStyle + * @return $this */ public function setHorizontalBorderChar($horizontalBorderChar) { @@ -86,7 +86,7 @@ public function getHorizontalBorderChar() * * @param string $verticalBorderChar * - * @return TableStyle + * @return $this */ public function setVerticalBorderChar($verticalBorderChar) { @@ -110,7 +110,7 @@ public function getVerticalBorderChar() * * @param string $crossingChar * - * @return TableStyle + * @return $this */ public function setCrossingChar($crossingChar) { @@ -134,7 +134,7 @@ public function getCrossingChar() * * @param string $cellHeaderFormat * - * @return TableStyle + * @return $this */ public function setCellHeaderFormat($cellHeaderFormat) { @@ -158,7 +158,7 @@ public function getCellHeaderFormat() * * @param string $cellRowFormat * - * @return TableStyle + * @return $this */ public function setCellRowFormat($cellRowFormat) { @@ -182,7 +182,7 @@ public function getCellRowFormat() * * @param string $cellRowContentFormat * - * @return TableStyle + * @return $this */ public function setCellRowContentFormat($cellRowContentFormat) { @@ -206,7 +206,7 @@ public function getCellRowContentFormat() * * @param string $borderFormat * - * @return TableStyle + * @return $this */ public function setBorderFormat($borderFormat) { @@ -230,7 +230,7 @@ public function getBorderFormat() * * @param int $padType STR_PAD_* * - * @return TableStyle + * @return $this */ public function setPadType($padType) { diff --git a/src/Symfony/Component/Console/Question/ChoiceQuestion.php b/src/Symfony/Component/Console/Question/ChoiceQuestion.php index 53712ca70af0..e5b6ff4ad721 100644 --- a/src/Symfony/Component/Console/Question/ChoiceQuestion.php +++ b/src/Symfony/Component/Console/Question/ChoiceQuestion.php @@ -56,7 +56,7 @@ public function getChoices() * * @param bool $multiselect * - * @return ChoiceQuestion The current instance + * @return $this */ public function setMultiselect($multiselect) { @@ -91,7 +91,7 @@ public function getPrompt() * * @param string $prompt * - * @return ChoiceQuestion The current instance + * @return $this */ public function setPrompt($prompt) { @@ -107,7 +107,7 @@ public function setPrompt($prompt) * * @param string $errorMessage * - * @return ChoiceQuestion The current instance + * @return $this */ public function setErrorMessage($errorMessage) { diff --git a/src/Symfony/Component/Console/Question/Question.php b/src/Symfony/Component/Console/Question/Question.php index 1eb3af663dc8..373501d691f8 100644 --- a/src/Symfony/Component/Console/Question/Question.php +++ b/src/Symfony/Component/Console/Question/Question.php @@ -74,7 +74,7 @@ public function isHidden() * * @param bool $hidden * - * @return Question The current instance + * @return $this * * @throws \LogicException In case the autocompleter is also used */ @@ -104,7 +104,7 @@ public function isHiddenFallback() * * @param bool $fallback * - * @return Question The current instance + * @return $this */ public function setHiddenFallback($fallback) { @@ -128,7 +128,7 @@ public function getAutocompleterValues() * * @param null|array|\Traversable $values * - * @return Question The current instance + * @return $this * * @throws \InvalidArgumentException * @throws \LogicException @@ -159,7 +159,7 @@ public function setAutocompleterValues($values) * * @param null|callable $validator * - * @return Question The current instance + * @return $this */ public function setValidator($validator) { @@ -185,7 +185,7 @@ public function getValidator() * * @param null|int $attempts * - * @return Question The current instance + * @return $this * * @throws \InvalidArgumentException In case the number of attempts is invalid. */ @@ -219,7 +219,7 @@ public function getMaxAttempts() * * @param callable $normalizer * - * @return Question The current instance + * @return $this */ public function setNormalizer($normalizer) { diff --git a/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php b/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php index 418bc301cbca..cb3158a5536d 100644 --- a/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php +++ b/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php @@ -27,7 +27,7 @@ class SyntaxErrorException extends ParseException * @param string $expectedValue * @param Token $foundToken * - * @return SyntaxErrorException + * @return self */ public static function unexpectedToken($expectedValue, Token $foundToken) { @@ -38,7 +38,7 @@ public static function unexpectedToken($expectedValue, Token $foundToken) * @param string $pseudoElement * @param string $unexpectedLocation * - * @return SyntaxErrorException + * @return self */ public static function pseudoElementFound($pseudoElement, $unexpectedLocation) { @@ -48,7 +48,7 @@ public static function pseudoElementFound($pseudoElement, $unexpectedLocation) /** * @param int $position * - * @return SyntaxErrorException + * @return self */ public static function unclosedString($position) { @@ -56,7 +56,7 @@ public static function unclosedString($position) } /** - * @return SyntaxErrorException + * @return self */ public static function nestedNot() { @@ -64,7 +64,7 @@ public static function nestedNot() } /** - * @return SyntaxErrorException + * @return self */ public static function stringAsFunctionArgument() { diff --git a/src/Symfony/Component/CssSelector/Node/Specificity.php b/src/Symfony/Component/CssSelector/Node/Specificity.php index 0ce0c3f3049d..6ee406d1328d 100644 --- a/src/Symfony/Component/CssSelector/Node/Specificity.php +++ b/src/Symfony/Component/CssSelector/Node/Specificity.php @@ -59,7 +59,7 @@ public function __construct($a, $b, $c) /** * @param Specificity $specificity * - * @return Specificity + * @return self */ public function plus(Specificity $specificity) { diff --git a/src/Symfony/Component/CssSelector/Parser/TokenStream.php b/src/Symfony/Component/CssSelector/Parser/TokenStream.php index 0c166eff229f..c4dd3375e10c 100644 --- a/src/Symfony/Component/CssSelector/Parser/TokenStream.php +++ b/src/Symfony/Component/CssSelector/Parser/TokenStream.php @@ -59,7 +59,7 @@ class TokenStream * * @param Token $token * - * @return TokenStream + * @return $this */ public function push(Token $token) { @@ -71,7 +71,7 @@ public function push(Token $token) /** * Freezes stream. * - * @return TokenStream + * @return $this */ public function freeze() { diff --git a/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php b/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php index 2b8920f1ab50..2c43116fb82f 100644 --- a/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php +++ b/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php @@ -48,7 +48,7 @@ public function __construct($flags = 0) * @param int $flag * @param bool $on * - * @return NodeExtension + * @return $this */ public function setFlag($flag, $on) { diff --git a/src/Symfony/Component/CssSelector/XPath/Translator.php b/src/Symfony/Component/CssSelector/XPath/Translator.php index 358204826049..4158e2e14f0d 100644 --- a/src/Symfony/Component/CssSelector/XPath/Translator.php +++ b/src/Symfony/Component/CssSelector/XPath/Translator.php @@ -144,7 +144,7 @@ public function selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or * * @param Extension\ExtensionInterface $extension * - * @return Translator + * @return $this */ public function registerExtension(Extension\ExtensionInterface $extension) { @@ -180,7 +180,7 @@ public function getExtension($name) * * @param ParserInterface $shortcut * - * @return Translator + * @return $this */ public function registerParserShortcut(ParserInterface $shortcut) { diff --git a/src/Symfony/Component/CssSelector/XPath/XPathExpr.php b/src/Symfony/Component/CssSelector/XPath/XPathExpr.php index c7ef97cb9a12..f75214b6f77f 100644 --- a/src/Symfony/Component/CssSelector/XPath/XPathExpr.php +++ b/src/Symfony/Component/CssSelector/XPath/XPathExpr.php @@ -64,7 +64,7 @@ public function getElement() /** * @param $condition * - * @return XPathExpr + * @return $this */ public function addCondition($condition) { @@ -82,7 +82,7 @@ public function getCondition() } /** - * @return XPathExpr + * @return $this */ public function addNameTest() { @@ -95,7 +95,7 @@ public function addNameTest() } /** - * @return XPathExpr + * @return $this */ public function addStarPrefix() { @@ -110,7 +110,7 @@ public function addStarPrefix() * @param string $combiner * @param XPathExpr $expr * - * @return XPathExpr + * @return $this */ public function join($combiner, XPathExpr $expr) { diff --git a/src/Symfony/Component/Debug/ExceptionHandler.php b/src/Symfony/Component/Debug/ExceptionHandler.php index 44f8f2567821..23929b3946c0 100644 --- a/src/Symfony/Component/Debug/ExceptionHandler.php +++ b/src/Symfony/Component/Debug/ExceptionHandler.php @@ -56,7 +56,7 @@ public function __construct($debug = true, $charset = null, $fileLinkFormat = nu * @param string|null $charset The charset used by exception messages * @param string|null $fileLinkFormat The IDE link template * - * @return ExceptionHandler The registered exception handler + * @return static */ public static function register($debug = true, $charset = null, $fileLinkFormat = null) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php b/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php index dc9a1a00eadc..e7306ab560e2 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php @@ -45,7 +45,7 @@ public function hasNode($id) * * @param string $id The id to retrieve * - * @return ServiceReferenceGraphNode The node matching the supplied identifier + * @return ServiceReferenceGraphNode * * @throws InvalidArgumentException if no node matches the supplied identifier */ @@ -61,7 +61,7 @@ public function getNode($id) /** * Returns all nodes. * - * @return ServiceReferenceGraphNode[] An array of all ServiceReferenceGraphNode objects + * @return ServiceReferenceGraphNode[] */ public function getNodes() { diff --git a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php index bb0546d0a591..012a8e946e3b 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php +++ b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php @@ -196,7 +196,7 @@ public function getResources() * * @param ResourceInterface $resource A resource instance * - * @return ContainerBuilder The current instance + * @return $this */ public function addResource(ResourceInterface $resource) { @@ -214,7 +214,7 @@ public function addResource(ResourceInterface $resource) * * @param ResourceInterface[] $resources An array of resources * - * @return ContainerBuilder The current instance + * @return $this */ public function setResources(array $resources) { @@ -232,7 +232,7 @@ public function setResources(array $resources) * * @param object $object An object instance * - * @return ContainerBuilder The current instance + * @return $this */ public function addObjectResource($object) { @@ -248,7 +248,7 @@ public function addObjectResource($object) * * @param \ReflectionClass $class * - * @return ContainerBuilder The current instance + * @return $this */ public function addClassResource(\ReflectionClass $class) { @@ -271,7 +271,7 @@ public function addClassResource(\ReflectionClass $class) * @param string $extension The extension alias or namespace * @param array $values An array of values that customizes the extension * - * @return ContainerBuilder The current instance + * @return $this * * @throws BadMethodCallException When this ContainerBuilder is frozen * @throws \LogicException if the container is frozen @@ -295,7 +295,7 @@ public function loadFromExtension($extension, array $values = array()) * @param CompilerPassInterface $pass A compiler pass * @param string $type The type of compiler pass * - * @return ContainerBuilder The current instance + * @return $this */ public function addCompilerPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) { diff --git a/src/Symfony/Component/DependencyInjection/Definition.php b/src/Symfony/Component/DependencyInjection/Definition.php index d5238f34400a..72fba5acc7ce 100644 --- a/src/Symfony/Component/DependencyInjection/Definition.php +++ b/src/Symfony/Component/DependencyInjection/Definition.php @@ -56,7 +56,7 @@ public function __construct($class = null, array $arguments = array()) * * @param string|array $factory A PHP function or an array containing a class/Reference and a method to call * - * @return Definition The current instance + * @return $this */ public function setFactory($factory) { @@ -85,7 +85,7 @@ public function getFactory() * * @param string $factoryClass The factory class name * - * @return Definition The current instance + * @return $this * * @deprecated since version 2.6, to be removed in 3.0. */ @@ -119,7 +119,7 @@ public function getFactoryClass($triggerDeprecationError = true) * * @param string $factoryMethod The factory method name * - * @return Definition The current instance + * @return $this * * @deprecated since version 2.6, to be removed in 3.0. */ @@ -138,7 +138,7 @@ public function setFactoryMethod($factoryMethod) * @param null|string $id The decorated service id, use null to remove decoration * @param null|string $renamedId The new decorated service id * - * @return Definition The current instance + * @return $this * * @throws InvalidArgumentException In case the decorated service id and the new decorated service id are equals. */ @@ -188,7 +188,7 @@ public function getFactoryMethod($triggerDeprecationError = true) * * @param string $factoryService The factory service id * - * @return Definition The current instance + * @return $this * * @deprecated since version 2.6, to be removed in 3.0. */ @@ -224,7 +224,7 @@ public function getFactoryService($triggerDeprecationError = true) * * @param string $class The service class * - * @return Definition The current instance + * @return $this */ public function setClass($class) { @@ -248,7 +248,7 @@ public function getClass() * * @param array $arguments An array of arguments * - * @return Definition The current instance + * @return $this */ public function setArguments(array $arguments) { @@ -281,7 +281,7 @@ public function setProperty($name, $value) * * @param mixed $argument An argument * - * @return Definition The current instance + * @return $this */ public function addArgument($argument) { @@ -296,7 +296,7 @@ public function addArgument($argument) * @param int $index * @param mixed $argument * - * @return Definition The current instance + * @return $this * * @throws OutOfBoundsException When the replaced argument does not exist */ @@ -344,7 +344,7 @@ public function getArgument($index) * * @param array $calls An array of method calls * - * @return Definition The current instance + * @return $this */ public function setMethodCalls(array $calls = array()) { @@ -362,7 +362,7 @@ public function setMethodCalls(array $calls = array()) * @param string $method The method name to call * @param array $arguments An array of arguments to pass to the method call * - * @return Definition The current instance + * @return $this * * @throws InvalidArgumentException on empty $method param */ @@ -381,7 +381,7 @@ public function addMethodCall($method, array $arguments = array()) * * @param string $method The method name to remove * - * @return Definition The current instance + * @return $this */ public function removeMethodCall($method) { @@ -428,7 +428,7 @@ public function getMethodCalls() * * @param array $tags * - * @return Definition the current instance + * @return $this */ public function setTags(array $tags) { @@ -465,7 +465,7 @@ public function getTag($name) * @param string $name The tag name * @param array $attributes An array of attributes * - * @return Definition The current instance + * @return $this */ public function addTag($name, array $attributes = array()) { @@ -491,7 +491,7 @@ public function hasTag($name) * * @param string $name The tag name * - * @return Definition + * @return $this */ public function clearTag($name) { @@ -503,7 +503,7 @@ public function clearTag($name) /** * Clears the tags for this definition. * - * @return Definition The current instance + * @return $this */ public function clearTags() { @@ -517,7 +517,7 @@ public function clearTags() * * @param string $file A full pathname to include * - * @return Definition The current instance + * @return $this */ public function setFile($file) { @@ -541,7 +541,7 @@ public function getFile() * * @param string $scope Whether the service must be shared or not * - * @return Definition The current instance + * @return $this */ public function setScope($scope) { @@ -565,7 +565,7 @@ public function getScope() * * @param bool $boolean * - * @return Definition The current instance + * @return $this */ public function setPublic($boolean) { @@ -589,7 +589,7 @@ public function isPublic() * * @param bool $boolean * - * @return Definition The current instance + * @return $this * * @deprecated since version 2.7, will be removed in 3.0. */ @@ -625,7 +625,7 @@ public function isSynchronized($triggerDeprecationError = true) * * @param bool $lazy * - * @return Definition The current instance + * @return $this */ public function setLazy($lazy) { @@ -650,7 +650,7 @@ public function isLazy() * * @param bool $boolean * - * @return Definition the current instance + * @return $this */ public function setSynthetic($boolean) { @@ -676,7 +676,7 @@ public function isSynthetic() * * @param bool $boolean * - * @return Definition the current instance + * @return $this */ public function setAbstract($boolean) { @@ -701,7 +701,7 @@ public function isAbstract() * * @param callable $callable A PHP callable * - * @return Definition The current instance + * @return $this */ public function setConfigurator($callable) { diff --git a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php index f462003fd1e8..17033345fe0e 100644 --- a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php +++ b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php @@ -192,7 +192,7 @@ public function getArgument($index) * @param int $index * @param mixed $value * - * @return DefinitionDecorator the current instance + * @return $this * * @throws InvalidArgumentException when $index isn't an integer */ diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index d4b7d45009a4..ea2051614f19 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -324,7 +324,7 @@ public function serialize() * * @param int $position The position * - * @return Crawler A new instance of the Crawler with the selected node, or an empty Crawler if it does not exist + * @return self */ public function eq($position) { @@ -369,7 +369,7 @@ public function each(\Closure $closure) * @param int $offset * @param int $length * - * @return Crawler A Crawler instance with the sliced nodes + * @return self */ public function slice($offset = 0, $length = -1) { @@ -383,7 +383,7 @@ public function slice($offset = 0, $length = -1) * * @param \Closure $closure An anonymous function * - * @return Crawler A Crawler instance with the selected nodes + * @return self */ public function reduce(\Closure $closure) { @@ -400,7 +400,7 @@ public function reduce(\Closure $closure) /** * Returns the first node of the current selection. * - * @return Crawler A Crawler instance with the first selected node + * @return self */ public function first() { @@ -410,7 +410,7 @@ public function first() /** * Returns the last node of the current selection. * - * @return Crawler A Crawler instance with the last selected node + * @return self */ public function last() { @@ -420,7 +420,7 @@ public function last() /** * Returns the siblings nodes of the current selection. * - * @return Crawler A Crawler instance with the sibling nodes + * @return self * * @throws \InvalidArgumentException When current node is empty */ @@ -436,7 +436,7 @@ public function siblings() /** * Returns the next siblings nodes of the current selection. * - * @return Crawler A Crawler instance with the next sibling nodes + * @return self * * @throws \InvalidArgumentException When current node is empty */ @@ -452,7 +452,7 @@ public function nextAll() /** * Returns the previous sibling nodes of the current selection. * - * @return Crawler A Crawler instance with the previous sibling nodes + * @return self * * @throws \InvalidArgumentException */ @@ -468,7 +468,7 @@ public function previousAll() /** * Returns the parents nodes of the current selection. * - * @return Crawler A Crawler instance with the parents nodes of the current selection + * @return self * * @throws \InvalidArgumentException When current node is empty */ @@ -493,7 +493,7 @@ public function parents() /** * Returns the children nodes of the current selection. * - * @return Crawler A Crawler instance with the children nodes + * @return self * * @throws \InvalidArgumentException When current node is empty */ @@ -626,7 +626,7 @@ public function extract($attributes) * * @param string $xpath An XPath expression * - * @return Crawler A new instance of Crawler with the filtered list of nodes + * @return self */ public function filterXPath($xpath) { @@ -647,7 +647,7 @@ public function filterXPath($xpath) * * @param string $selector A CSS selector * - * @return Crawler A new instance of Crawler with the filtered list of nodes + * @return self * * @throws \RuntimeException if the CssSelector Component is not available */ @@ -666,7 +666,7 @@ public function filter($selector) * * @param string $value The link text * - * @return Crawler A new instance of Crawler with the filtered list of nodes + * @return self */ public function selectLink($value) { @@ -681,7 +681,7 @@ public function selectLink($value) * * @param string $value The button text * - * @return Crawler A new instance of Crawler with the filtered list of nodes + * @return self */ public function selectButton($value) { @@ -826,7 +826,7 @@ public static function xpathLiteral($s) * * @param string $xpath * - * @return Crawler + * @return self */ private function filterRelativeXPath($xpath) { diff --git a/src/Symfony/Component/DomCrawler/Form.php b/src/Symfony/Component/DomCrawler/Form.php index 0390e3fc7831..bad1b34935d0 100644 --- a/src/Symfony/Component/DomCrawler/Form.php +++ b/src/Symfony/Component/DomCrawler/Form.php @@ -69,7 +69,7 @@ public function getFormNode() * * @param array $values An array of field values * - * @return Form + * @return $this */ public function setValues(array $values) { @@ -279,7 +279,7 @@ public function set(FormField $field) /** * Gets all fields. * - * @return FormField[] An array of fields + * @return FormField[] */ public function all() { diff --git a/src/Symfony/Component/DomCrawler/FormFieldRegistry.php b/src/Symfony/Component/DomCrawler/FormFieldRegistry.php index 7dd3d3e7a322..9168dd365af9 100644 --- a/src/Symfony/Component/DomCrawler/FormFieldRegistry.php +++ b/src/Symfony/Component/DomCrawler/FormFieldRegistry.php @@ -151,7 +151,7 @@ public function all() * @param string $base The fully qualified name of the base field * @param array $values The values of the fields * - * @return FormFieldRegistry + * @return static */ private static function create($base, array $values) { diff --git a/src/Symfony/Component/EventDispatcher/Event.php b/src/Symfony/Component/EventDispatcher/Event.php index 956f7264528c..3ce854969d22 100644 --- a/src/Symfony/Component/EventDispatcher/Event.php +++ b/src/Symfony/Component/EventDispatcher/Event.php @@ -33,7 +33,7 @@ class Event private $propagationStopped = false; /** - * @var EventDispatcher Dispatcher that dispatched this event + * @var EventDispatcherInterface Dispatcher that dispatched this event */ private $dispatcher; diff --git a/src/Symfony/Component/EventDispatcher/GenericEvent.php b/src/Symfony/Component/EventDispatcher/GenericEvent.php index 2b9f40e26ad2..e8e4cc050266 100644 --- a/src/Symfony/Component/EventDispatcher/GenericEvent.php +++ b/src/Symfony/Component/EventDispatcher/GenericEvent.php @@ -80,7 +80,7 @@ public function getArgument($key) * @param string $key Argument name * @param mixed $value Value * - * @return GenericEvent + * @return $this */ public function setArgument($key, $value) { @@ -104,7 +104,7 @@ public function getArguments() * * @param array $args Arguments * - * @return GenericEvent + * @return $this */ public function setArguments(array $args = array()) { diff --git a/src/Symfony/Component/ExpressionLanguage/Compiler.php b/src/Symfony/Component/ExpressionLanguage/Compiler.php index d9f29696474e..f32ec36d306f 100644 --- a/src/Symfony/Component/ExpressionLanguage/Compiler.php +++ b/src/Symfony/Component/ExpressionLanguage/Compiler.php @@ -53,7 +53,7 @@ public function reset() * * @param Node\Node $node The node to compile * - * @return Compiler The current compiler instance + * @return $this */ public function compile(Node\Node $node) { @@ -80,7 +80,7 @@ public function subcompile(Node\Node $node) * * @param string $string The string * - * @return Compiler The current compiler instance + * @return $this */ public function raw($string) { @@ -94,7 +94,7 @@ public function raw($string) * * @param string $value The string * - * @return Compiler The current compiler instance + * @return $this */ public function string($value) { @@ -108,7 +108,7 @@ public function string($value) * * @param mixed $value The value to convert * - * @return Compiler The current compiler instance + * @return $this */ public function repr($value) { diff --git a/src/Symfony/Component/Finder/Adapter/AdapterInterface.php b/src/Symfony/Component/Finder/Adapter/AdapterInterface.php index bdc3a938701c..2f22a81ccbc0 100644 --- a/src/Symfony/Component/Finder/Adapter/AdapterInterface.php +++ b/src/Symfony/Component/Finder/Adapter/AdapterInterface.php @@ -19,105 +19,105 @@ interface AdapterInterface /** * @param bool $followLinks * - * @return AdapterInterface Current instance + * @return $this */ public function setFollowLinks($followLinks); /** * @param int $mode * - * @return AdapterInterface Current instance + * @return $this */ public function setMode($mode); /** * @param array $exclude * - * @return AdapterInterface Current instance + * @return $this */ public function setExclude(array $exclude); /** * @param array $depths * - * @return AdapterInterface Current instance + * @return $this */ public function setDepths(array $depths); /** * @param array $names * - * @return AdapterInterface Current instance + * @return $this */ public function setNames(array $names); /** * @param array $notNames * - * @return AdapterInterface Current instance + * @return $this */ public function setNotNames(array $notNames); /** * @param array $contains * - * @return AdapterInterface Current instance + * @return $this */ public function setContains(array $contains); /** * @param array $notContains * - * @return AdapterInterface Current instance + * @return $this */ public function setNotContains(array $notContains); /** * @param array $sizes * - * @return AdapterInterface Current instance + * @return $this */ public function setSizes(array $sizes); /** * @param array $dates * - * @return AdapterInterface Current instance + * @return $this */ public function setDates(array $dates); /** * @param array $filters * - * @return AdapterInterface Current instance + * @return $this */ public function setFilters(array $filters); /** * @param \Closure|int $sort * - * @return AdapterInterface Current instance + * @return $this */ public function setSort($sort); /** * @param array $paths * - * @return AdapterInterface Current instance + * @return $this */ public function setPath(array $paths); /** * @param array $notPaths * - * @return AdapterInterface Current instance + * @return $this */ public function setNotPath(array $notPaths); /** * @param bool $ignore * - * @return AdapterInterface Current instance + * @return $this */ public function ignoreUnreadableDirs($ignore = true); diff --git a/src/Symfony/Component/Finder/Expression/Expression.php b/src/Symfony/Component/Finder/Expression/Expression.php index a4f1f219a8ec..f67429232678 100644 --- a/src/Symfony/Component/Finder/Expression/Expression.php +++ b/src/Symfony/Component/Finder/Expression/Expression.php @@ -27,7 +27,7 @@ class Expression implements ValueInterface /** * @param string $expr * - * @return Expression + * @return self */ public static function create($expr) { diff --git a/src/Symfony/Component/Finder/Expression/Regex.php b/src/Symfony/Component/Finder/Expression/Regex.php index a249fc2546da..e3c404b6d73f 100644 --- a/src/Symfony/Component/Finder/Expression/Regex.php +++ b/src/Symfony/Component/Finder/Expression/Regex.php @@ -55,7 +55,7 @@ class Regex implements ValueInterface /** * @param string $expr * - * @return Regex + * @return self * * @throws \InvalidArgumentException */ @@ -173,7 +173,7 @@ public function hasOption($option) /** * @param string $option * - * @return Regex + * @return $this */ public function addOption($option) { @@ -187,7 +187,7 @@ public function addOption($option) /** * @param string $option * - * @return Regex + * @return $this */ public function removeOption($option) { @@ -199,7 +199,7 @@ public function removeOption($option) /** * @param bool $startFlag * - * @return Regex + * @return $this */ public function setStartFlag($startFlag) { @@ -219,7 +219,7 @@ public function hasStartFlag() /** * @param bool $endFlag * - * @return Regex + * @return $this */ public function setEndFlag($endFlag) { @@ -239,7 +239,7 @@ public function hasEndFlag() /** * @param bool $startJoker * - * @return Regex + * @return $this */ public function setStartJoker($startJoker) { @@ -259,7 +259,7 @@ public function hasStartJoker() /** * @param bool $endJoker * - * @return Regex + * @return $this */ public function setEndJoker($endJoker) { @@ -279,7 +279,7 @@ public function hasEndJoker() /** * @param array $replacement * - * @return Regex + * @return $this */ public function replaceJokers($replacement) { diff --git a/src/Symfony/Component/Finder/Expression/ValueInterface.php b/src/Symfony/Component/Finder/Expression/ValueInterface.php index 34ce0e7ce499..3d9b369df116 100644 --- a/src/Symfony/Component/Finder/Expression/ValueInterface.php +++ b/src/Symfony/Component/Finder/Expression/ValueInterface.php @@ -47,14 +47,14 @@ public function getType(); /** * @param string $expr * - * @return ValueInterface + * @return $this */ public function prepend($expr); /** * @param string $expr * - * @return ValueInterface + * @return $this */ public function append($expr); } diff --git a/src/Symfony/Component/Finder/Finder.php b/src/Symfony/Component/Finder/Finder.php index c9d14809dc28..edbdcd640207 100644 --- a/src/Symfony/Component/Finder/Finder.php +++ b/src/Symfony/Component/Finder/Finder.php @@ -85,7 +85,7 @@ public function __construct() /** * Creates a new Finder. * - * @return Finder A new Finder instance + * @return static */ public static function create() { @@ -98,7 +98,7 @@ public static function create() * @param AdapterInterface $adapter An adapter instance * @param int $priority Highest is selected first * - * @return Finder The current Finder instance + * @return $this */ public function addAdapter(AdapterInterface $adapter, $priority = 0) { @@ -114,7 +114,7 @@ public function addAdapter(AdapterInterface $adapter, $priority = 0) /** * Sets the selected adapter to the best one according to the current platform the code is run on. * - * @return Finder The current Finder instance + * @return $this */ public function useBestAdapter() { @@ -128,7 +128,7 @@ public function useBestAdapter() * * @param string $name * - * @return Finder The current Finder instance + * @return $this * * @throws \InvalidArgumentException */ @@ -147,7 +147,7 @@ public function setAdapter($name) /** * Removes all adapters registered in the finder. * - * @return Finder The current Finder instance + * @return $this */ public function removeAdapters() { @@ -171,7 +171,7 @@ public function getAdapters() /** * Restricts the matching to directories only. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this */ public function directories() { @@ -183,7 +183,7 @@ public function directories() /** * Restricts the matching to files only. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this */ public function files() { @@ -202,7 +202,7 @@ public function files() * * @param string|int $level The depth level expression * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see DepthRangeFilterIterator * @see NumberComparator @@ -226,7 +226,7 @@ public function depth($level) * * @param string $date A date range string * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see strtotime * @see DateRangeFilterIterator @@ -250,7 +250,7 @@ public function date($date) * * @param string $pattern A pattern (a regexp, a glob, or a string) * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see FilenameFilterIterator */ @@ -266,7 +266,7 @@ public function name($pattern) * * @param string $pattern A pattern (a regexp, a glob, or a string) * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see FilenameFilterIterator */ @@ -287,7 +287,7 @@ public function notName($pattern) * * @param string $pattern A pattern (string or regexp) * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see FilecontentFilterIterator */ @@ -308,7 +308,7 @@ public function contains($pattern) * * @param string $pattern A pattern (string or regexp) * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see FilecontentFilterIterator */ @@ -331,7 +331,7 @@ public function notContains($pattern) * * @param string $pattern A pattern (a regexp or a string) * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see FilenameFilterIterator */ @@ -354,7 +354,7 @@ public function path($pattern) * * @param string $pattern A pattern (a regexp or a string) * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see FilenameFilterIterator */ @@ -374,7 +374,7 @@ public function notPath($pattern) * * @param string|int $size A size range string or an integer * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see SizeRangeFilterIterator * @see NumberComparator @@ -391,7 +391,7 @@ public function size($size) * * @param string|array $dirs A directory path or an array of directories * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see ExcludeDirectoryFilterIterator */ @@ -407,7 +407,7 @@ public function exclude($dirs) * * @param bool $ignoreDotFiles Whether to exclude "hidden" files or not * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see ExcludeDirectoryFilterIterator */ @@ -427,7 +427,7 @@ public function ignoreDotFiles($ignoreDotFiles) * * @param bool $ignoreVCS Whether to exclude VCS files or not * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see ExcludeDirectoryFilterIterator */ @@ -467,7 +467,7 @@ public static function addVCSPattern($pattern) * * @param \Closure $closure An anonymous function * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see SortableIterator */ @@ -483,7 +483,7 @@ public function sort(\Closure $closure) * * This can be slow as all the matching files and directories must be retrieved for comparison. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see SortableIterator */ @@ -499,7 +499,7 @@ public function sortByName() * * This can be slow as all the matching files and directories must be retrieved for comparison. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see SortableIterator */ @@ -517,7 +517,7 @@ public function sortByType() * * This can be slow as all the matching files and directories must be retrieved for comparison. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see SortableIterator */ @@ -537,7 +537,7 @@ public function sortByAccessedTime() * * This can be slow as all the matching files and directories must be retrieved for comparison. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see SortableIterator */ @@ -555,7 +555,7 @@ public function sortByChangedTime() * * This can be slow as all the matching files and directories must be retrieved for comparison. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see SortableIterator */ @@ -574,7 +574,7 @@ public function sortByModifiedTime() * * @param \Closure $closure An anonymous function * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @see CustomFilterIterator */ @@ -588,7 +588,7 @@ public function filter(\Closure $closure) /** * Forces the following of symlinks. * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this */ public function followLinks() { @@ -604,7 +604,7 @@ public function followLinks() * * @param bool $ignore * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this */ public function ignoreUnreadableDirs($ignore = true) { @@ -618,7 +618,7 @@ public function ignoreUnreadableDirs($ignore = true) * * @param string|array $dirs A directory path or an array of directories * - * @return Finder|SplFileInfo[] The current Finder instance + * @return $this * * @throws \InvalidArgumentException if one of the directories does not exist */ @@ -679,7 +679,7 @@ public function getIterator() * * @param mixed $iterator * - * @return Finder|SplFileInfo[] The finder + * @return $this * * @throws \InvalidArgumentException When the given argument is not iterable. */ @@ -713,7 +713,7 @@ public function count() } /** - * @return Finder The current Finder instance + * @return $this */ private function sortAdapters() { diff --git a/src/Symfony/Component/Finder/Shell/Command.php b/src/Symfony/Component/Finder/Shell/Command.php index f8bd6a08514e..1e0747210c7a 100644 --- a/src/Symfony/Component/Finder/Shell/Command.php +++ b/src/Symfony/Component/Finder/Shell/Command.php @@ -61,7 +61,7 @@ public function __toString() * * @param Command|null $parent Parent command * - * @return Command New Command instance + * @return self */ public static function create(Command $parent = null) { @@ -97,7 +97,7 @@ public static function quote($input) * * @param string|Command $bit * - * @return Command The current Command instance + * @return $this */ public function add($bit) { @@ -111,7 +111,7 @@ public function add($bit) * * @param string|Command $bit * - * @return Command The current Command instance + * @return $this */ public function top($bit) { @@ -129,7 +129,7 @@ public function top($bit) * * @param string $arg * - * @return Command The current Command instance + * @return $this */ public function arg($arg) { @@ -143,7 +143,7 @@ public function arg($arg) * * @param string $esc * - * @return Command The current Command instance + * @return $this */ public function cmd($esc) { @@ -157,7 +157,7 @@ public function cmd($esc) * * @param string $label The unique label * - * @return Command The current Command instance + * @return self|string * * @throws \RuntimeException If label already exists */ @@ -178,7 +178,7 @@ public function ins($label) * * @param string $label * - * @return Command The labeled command + * @return self|string * * @throws \RuntimeException */ @@ -194,7 +194,7 @@ public function get($label) /** * Returns parent command (if any). * - * @return Command Parent command + * @return self * * @throws \RuntimeException If command has no parent */ @@ -220,7 +220,7 @@ public function length() /** * @param \Closure $errorHandler * - * @return Command + * @return $this */ public function setErrorHandler(\Closure $errorHandler) { @@ -283,7 +283,7 @@ function ($bit) { return null !== $bit; } * @param string|Command $bit * @param int $index * - * @return Command The current Command instance + * @return $this */ public function addAtIndex($bit, $index) { diff --git a/src/Symfony/Component/Form/Button.php b/src/Symfony/Component/Form/Button.php index 6ceaed278e86..efc14c063932 100644 --- a/src/Symfony/Component/Form/Button.php +++ b/src/Symfony/Component/Form/Button.php @@ -369,7 +369,7 @@ public function handleRequest($request = null) * @param null|string $submittedData The data * @param bool $clearMissing Not used * - * @return Button The button instance + * @return $this * * @throws Exception\AlreadySubmittedException If the button has already been submitted. */ diff --git a/src/Symfony/Component/Form/ButtonBuilder.php b/src/Symfony/Component/Form/ButtonBuilder.php index 89cad5153022..eaecb382fd32 100644 --- a/src/Symfony/Component/Form/ButtonBuilder.php +++ b/src/Symfony/Component/Form/ButtonBuilder.php @@ -286,7 +286,7 @@ public function setDataMapper(DataMapperInterface $dataMapper = null) * * @param bool $disabled Whether the button is disabled * - * @return ButtonBuilder The button builder + * @return $this */ public function setDisabled($disabled) { @@ -415,7 +415,7 @@ public function setCompound($compound) * * @param ResolvedFormTypeInterface $type The type of the button * - * @return ButtonBuilder The button builder + * @return $this */ public function setType(ResolvedFormTypeInterface $type) { @@ -507,7 +507,7 @@ public function setRequestHandler(RequestHandlerInterface $requestHandler) * * @param bool $initialize * - * @return ButtonBuilder + * @return $this * * @throws BadMethodCallException */ diff --git a/src/Symfony/Component/Form/FormBuilder.php b/src/Symfony/Component/Form/FormBuilder.php index 62fd18eae4ea..d64e2f26c682 100644 --- a/src/Symfony/Component/Form/FormBuilder.php +++ b/src/Symfony/Component/Form/FormBuilder.php @@ -248,7 +248,7 @@ public function getIterator() * * @param string $name The name of the unresolved child * - * @return FormBuilder The created instance + * @return self The created instance */ private function resolveChild($name) { diff --git a/src/Symfony/Component/Form/FormBuilderInterface.php b/src/Symfony/Component/Form/FormBuilderInterface.php index b72059242ea9..1145ab26420c 100644 --- a/src/Symfony/Component/Form/FormBuilderInterface.php +++ b/src/Symfony/Component/Form/FormBuilderInterface.php @@ -27,7 +27,7 @@ interface FormBuilderInterface extends \Traversable, \Countable, FormConfigBuild * @param string|FormTypeInterface $type * @param array $options * - * @return FormBuilderInterface The builder object + * @return $this */ public function add($child, $type = null, array $options = array()); @@ -38,7 +38,7 @@ public function add($child, $type = null, array $options = array()); * @param string|FormTypeInterface $type The type of the form or null if name is a property * @param array $options The options * - * @return FormBuilderInterface The created builder + * @return self */ public function create($name, $type = null, array $options = array()); @@ -47,7 +47,7 @@ public function create($name, $type = null, array $options = array()); * * @param string $name The name of the child * - * @return FormBuilderInterface The builder for the child + * @return self * * @throws Exception\InvalidArgumentException if the given child does not exist */ @@ -58,7 +58,7 @@ public function get($name); * * @param string $name * - * @return FormBuilderInterface The builder object + * @return $this */ public function remove($name); diff --git a/src/Symfony/Component/Form/FormConfigBuilder.php b/src/Symfony/Component/Form/FormConfigBuilder.php index 2076f016ac2d..61c0da55c0be 100644 --- a/src/Symfony/Component/Form/FormConfigBuilder.php +++ b/src/Symfony/Component/Form/FormConfigBuilder.php @@ -349,7 +349,7 @@ public function getInheritData() /** * Alias of {@link getInheritData()}. * - * @return FormConfigBuilder The configuration object + * @return bool * * @deprecated since version 2.3, to be removed in 3.0. * Use {@link getInheritData()} instead. @@ -715,8 +715,6 @@ public function setInheritData($inheritData) * * @param bool $inheritData Whether the form should inherit its parent's data * - * @return FormConfigBuilder The configuration object - * * @deprecated since version 2.3, to be removed in 3.0. * Use {@link setInheritData()} instead. */ diff --git a/src/Symfony/Component/Form/FormFactoryBuilderInterface.php b/src/Symfony/Component/Form/FormFactoryBuilderInterface.php index d89e2f9f9a2b..c1e55dcc60ea 100644 --- a/src/Symfony/Component/Form/FormFactoryBuilderInterface.php +++ b/src/Symfony/Component/Form/FormFactoryBuilderInterface.php @@ -23,7 +23,7 @@ interface FormFactoryBuilderInterface * * @param ResolvedFormTypeFactoryInterface $resolvedTypeFactory * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory); @@ -32,7 +32,7 @@ public function setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolve * * @param FormExtensionInterface $extension The extension * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addExtension(FormExtensionInterface $extension); @@ -41,7 +41,7 @@ public function addExtension(FormExtensionInterface $extension); * * @param FormExtensionInterface[] $extensions The extensions * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addExtensions(array $extensions); @@ -50,7 +50,7 @@ public function addExtensions(array $extensions); * * @param FormTypeInterface $type The form type * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addType(FormTypeInterface $type); @@ -59,7 +59,7 @@ public function addType(FormTypeInterface $type); * * @param FormTypeInterface[] $types The form types * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addTypes(array $types); @@ -68,7 +68,7 @@ public function addTypes(array $types); * * @param FormTypeExtensionInterface $typeExtension The form type extension * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addTypeExtension(FormTypeExtensionInterface $typeExtension); @@ -77,7 +77,7 @@ public function addTypeExtension(FormTypeExtensionInterface $typeExtension); * * @param FormTypeExtensionInterface[] $typeExtensions The form type extensions * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addTypeExtensions(array $typeExtensions); @@ -86,7 +86,7 @@ public function addTypeExtensions(array $typeExtensions); * * @param FormTypeGuesserInterface $typeGuesser The type guesser * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addTypeGuesser(FormTypeGuesserInterface $typeGuesser); @@ -95,7 +95,7 @@ public function addTypeGuesser(FormTypeGuesserInterface $typeGuesser); * * @param FormTypeGuesserInterface[] $typeGuessers The type guessers * - * @return FormFactoryBuilderInterface The builder + * @return $this */ public function addTypeGuessers(array $typeGuessers); diff --git a/src/Symfony/Component/Form/FormInterface.php b/src/Symfony/Component/Form/FormInterface.php index 9de802847ee8..a61f7f99d0d7 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -25,7 +25,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * @param FormInterface|null $parent The parent form or null if it's the root * - * @return FormInterface The form instance + * @return self * * @throws Exception\AlreadySubmittedException If the form has already been submitted. * @throws Exception\LogicException When trying to set a parent for a form with @@ -36,7 +36,7 @@ public function setParent(FormInterface $parent = null); /** * Returns the parent form. * - * @return FormInterface|null The parent form or null if there is none + * @return self|null The parent form or null if there is none */ public function getParent(); @@ -47,7 +47,7 @@ public function getParent(); * @param string|null $type The child's type, if a name was passed * @param array $options The child's options, if a name was passed * - * @return FormInterface The form instance + * @return self * * @throws Exception\AlreadySubmittedException If the form has already been submitted. * @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()); * * @param string $name The name of the child * - * @return FormInterface The child form + * @return self * * @throws \OutOfBoundsException If the named child does not exist. */ @@ -80,7 +80,7 @@ public function has($name); * * @param string $name The name of the child to remove * - * @return FormInterface The form instance + * @return $this * * @throws Exception\AlreadySubmittedException If the form has already been submitted. */ @@ -89,7 +89,7 @@ public function remove($name); /** * Returns all children in this group. * - * @return FormInterface[] An array of FormInterface instances + * @return self[] */ public function all(); @@ -110,7 +110,7 @@ public function getErrors($deep = false, $flatten = true); * * @param mixed $modelData The data formatted as expected for the underlying object * - * @return FormInterface The form instance + * @return $this * * @throws Exception\AlreadySubmittedException If the form has already been submitted. * @throws Exception\LogicException If listeners try to call setData in a cycle. Or if @@ -182,7 +182,7 @@ public function getPropertyPath(); * * @param FormError $error * - * @return FormInterface The form instance + * @return $this */ public function addError(FormError $error); @@ -248,7 +248,7 @@ public function getTransformationFailure(); * * Should be called on the root form after constructing the tree. * - * @return FormInterface The form instance + * @return $this */ public function initialize(); @@ -262,7 +262,7 @@ public function initialize(); * * @param mixed $request The request to handle * - * @return FormInterface The form instance + * @return $this */ public function handleRequest($request = null); @@ -274,7 +274,7 @@ public function handleRequest($request = null); * when they are missing in the * submitted data. * - * @return FormInterface The form instance + * @return $this * * @throws Exception\AlreadySubmittedException If the form has already been submitted. */ @@ -283,7 +283,7 @@ public function submit($submittedData, $clearMissing = true); /** * Returns the root of the form tree. * - * @return FormInterface The root of the tree + * @return self The root of the tree */ public function getRoot(); diff --git a/src/Symfony/Component/Form/FormView.php b/src/Symfony/Component/Form/FormView.php index 401288cf83d9..c1da5f8fc9bb 100644 --- a/src/Symfony/Component/Form/FormView.php +++ b/src/Symfony/Component/Form/FormView.php @@ -81,7 +81,7 @@ public function isRendered() /** * Marks the view as rendered. * - * @return FormView The view object + * @return $this */ public function setRendered() { @@ -95,7 +95,7 @@ public function setRendered() * * @param string $name The child name * - * @return FormView The child view + * @return self The child view */ public function offsetGet($name) { diff --git a/src/Symfony/Component/Form/Guess/Guess.php b/src/Symfony/Component/Form/Guess/Guess.php index 0595e7bba3d3..36614ffdb9f9 100644 --- a/src/Symfony/Component/Form/Guess/Guess.php +++ b/src/Symfony/Component/Form/Guess/Guess.php @@ -70,7 +70,7 @@ abstract class Guess * * @param Guess[] $guesses An array of guesses * - * @return Guess|null The guess with the highest confidence + * @return self|null */ public static function getBestGuess(array $guesses) { diff --git a/src/Symfony/Component/Form/SubmitButton.php b/src/Symfony/Component/Form/SubmitButton.php index 53ff7bc311cb..4bfc1b646581 100644 --- a/src/Symfony/Component/Form/SubmitButton.php +++ b/src/Symfony/Component/Form/SubmitButton.php @@ -37,7 +37,7 @@ public function isClicked() * @param null|string $submittedData The data * @param bool $clearMissing Not used * - * @return SubmitButton The button instance + * @return $this * * @throws Exception\AlreadySubmittedException If the form has already been submitted. */ diff --git a/src/Symfony/Component/HttpFoundation/AcceptHeader.php b/src/Symfony/Component/HttpFoundation/AcceptHeader.php index 226078763ec2..2aa91dc44cb4 100644 --- a/src/Symfony/Component/HttpFoundation/AcceptHeader.php +++ b/src/Symfony/Component/HttpFoundation/AcceptHeader.php @@ -48,7 +48,7 @@ public function __construct(array $items) * * @param string $headerValue * - * @return AcceptHeader + * @return self */ public static function fromString($headerValue) { @@ -101,7 +101,7 @@ public function get($value) * * @param AcceptHeaderItem $item * - * @return AcceptHeader + * @return $this */ public function add(AcceptHeaderItem $item) { @@ -128,7 +128,7 @@ public function all() * * @param string $pattern * - * @return AcceptHeader + * @return self */ public function filter($pattern) { diff --git a/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php b/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php index 21a5d155f5ab..fb54b4935a9f 100644 --- a/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php +++ b/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php @@ -57,7 +57,7 @@ public function __construct($value, array $attributes = array()) * * @param string $itemValue * - * @return AcceptHeaderItem + * @return self */ public static function fromString($itemValue) { @@ -103,7 +103,7 @@ public function __toString() * * @param string $value * - * @return AcceptHeaderItem + * @return $this */ public function setValue($value) { @@ -127,7 +127,7 @@ public function getValue() * * @param float $quality * - * @return AcceptHeaderItem + * @return $this */ public function setQuality($quality) { @@ -151,7 +151,7 @@ public function getQuality() * * @param int $index * - * @return AcceptHeaderItem + * @return $this */ public function setIndex($index) { @@ -211,7 +211,7 @@ public function getAttributes() * @param string $name * @param string $value * - * @return AcceptHeaderItem + * @return $this */ public function setAttribute($name, $value) { diff --git a/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php b/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php index f95d90c36405..825c78fedeb3 100644 --- a/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php +++ b/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php @@ -66,7 +66,7 @@ public function __construct($file, $status = 200, $headers = array(), $public = * @param bool $autoEtag Whether the ETag header should be automatically set * @param bool $autoLastModified Whether the Last-Modified header should be automatically set * - * @return BinaryFileResponse The created response + * @return static */ public static function create($file = null, $status = 200, $headers = array(), $public = true, $contentDisposition = null, $autoEtag = false, $autoLastModified = true) { @@ -81,7 +81,7 @@ public static function create($file = null, $status = 200, $headers = array(), $ * @param bool $autoEtag * @param bool $autoLastModified * - * @return BinaryFileResponse + * @return $this * * @throws FileException */ @@ -153,7 +153,7 @@ public function setAutoEtag() * @param string $filename Optionally use this filename instead of the real name of the file * @param string $filenameFallback A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename * - * @return BinaryFileResponse + * @return $this */ public function setContentDisposition($disposition, $filename = '', $filenameFallback = '') { @@ -348,7 +348,7 @@ public static function trustXSendfileTypeHeader() * * @param bool $shouldDelete * - * @return BinaryFileResponse + * @return $this */ public function deleteFileAfterSend($shouldDelete) { diff --git a/src/Symfony/Component/HttpFoundation/File/File.php b/src/Symfony/Component/HttpFoundation/File/File.php index 4736b45c3483..e2a67684fcda 100644 --- a/src/Symfony/Component/HttpFoundation/File/File.php +++ b/src/Symfony/Component/HttpFoundation/File/File.php @@ -85,7 +85,7 @@ public function getMimeType() * @param string $directory The destination folder * @param string $name The new file name * - * @return File A File object representing the new file + * @return self A File object representing the new file * * @throws FileException if the target file could not be created */ diff --git a/src/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesser.php b/src/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesser.php index ec9b78ab2ad1..921751f6b5af 100644 --- a/src/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesser.php +++ b/src/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesser.php @@ -42,7 +42,7 @@ class ExtensionGuesser implements ExtensionGuesserInterface /** * Returns the singleton instance. * - * @return ExtensionGuesser + * @return self */ public static function getInstance() { diff --git a/src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php b/src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php index ecc8a30ac25d..69c803b4993b 100644 --- a/src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php +++ b/src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php @@ -56,7 +56,7 @@ class MimeTypeGuesser implements MimeTypeGuesserInterface /** * Returns the singleton instance. * - * @return MimeTypeGuesser + * @return self */ public static function getInstance() { diff --git a/src/Symfony/Component/HttpFoundation/JsonResponse.php b/src/Symfony/Component/HttpFoundation/JsonResponse.php index f370867aedc9..b20e2e28ba3c 100644 --- a/src/Symfony/Component/HttpFoundation/JsonResponse.php +++ b/src/Symfony/Component/HttpFoundation/JsonResponse.php @@ -61,7 +61,7 @@ public function __construct($data = null, $status = 200, $headers = array()) * @param int $status The response status code * @param array $headers An array of response headers * - * @return JsonResponse + * @return static */ public static function create($data = null, $status = 200, $headers = array()) { @@ -73,7 +73,7 @@ public static function create($data = null, $status = 200, $headers = array()) * * @param string|null $callback The JSONP callback or null to use none * - * @return JsonResponse + * @return $this * * @throws \InvalidArgumentException When the callback name is not valid */ @@ -108,7 +108,7 @@ public function setCallback($callback = null) * * @param mixed $data * - * @return JsonResponse + * @return $this * * @throws \InvalidArgumentException */ @@ -184,7 +184,7 @@ public function getEncodingOptions() * * @param int $encodingOptions * - * @return JsonResponse + * @return $this */ public function setEncodingOptions($encodingOptions) { @@ -196,7 +196,7 @@ public function setEncodingOptions($encodingOptions) /** * Updates the content and headers according to the JSON data and callback. * - * @return JsonResponse + * @return $this */ protected function update() { diff --git a/src/Symfony/Component/HttpFoundation/RedirectResponse.php b/src/Symfony/Component/HttpFoundation/RedirectResponse.php index 8d2608336afa..5a775ad159f3 100644 --- a/src/Symfony/Component/HttpFoundation/RedirectResponse.php +++ b/src/Symfony/Component/HttpFoundation/RedirectResponse.php @@ -66,7 +66,7 @@ public function getTargetUrl() * * @param string $url The URL to redirect to * - * @return RedirectResponse The current response + * @return $this * * @throws \InvalidArgumentException */ diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 888e5fdc010d..e63ee755bb87 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -261,7 +261,7 @@ public function initialize(array $query = array(), array $request = array(), arr /** * Creates a new request with values from PHP's super globals. * - * @return Request A new request + * @return static */ public static function createFromGlobals() { @@ -304,7 +304,7 @@ public static function createFromGlobals() * @param array $server The server parameters ($_SERVER) * @param string $content The raw body data * - * @return Request A Request instance + * @return static */ public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null) { @@ -422,7 +422,7 @@ public static function setFactory($callable) * @param array $files The FILES parameters * @param array $server The SERVER parameters * - * @return Request The duplicated request + * @return static */ public function duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null) { diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index 952fbc48a6bb..b19d2122ff6f 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -219,7 +219,7 @@ public function __construct($content = '', $status = 200, $headers = array()) * @param int $status The response status code * @param array $headers An array of response headers * - * @return Response + * @return static */ public static function create($content = '', $status = 200, $headers = array()) { @@ -262,7 +262,7 @@ public function __clone() * * @param Request $request A Request instance * - * @return Response The current response + * @return $this */ public function prepare(Request $request) { @@ -324,7 +324,7 @@ public function prepare(Request $request) /** * Sends HTTP headers. * - * @return Response + * @return $this */ public function sendHeaders() { @@ -354,7 +354,7 @@ public function sendHeaders() /** * Sends content for the current web response. * - * @return Response + * @return $this */ public function sendContent() { @@ -366,7 +366,7 @@ public function sendContent() /** * Sends HTTP headers and content. * - * @return Response + * @return $this */ public function send() { @@ -389,7 +389,7 @@ public function send() * * @param mixed $content Content that can be cast to string * - * @return Response + * @return $this * * @throws \UnexpectedValueException */ @@ -419,7 +419,7 @@ public function getContent() * * @param string $version The HTTP protocol version * - * @return Response + * @return $this */ public function setProtocolVersion($version) { @@ -447,7 +447,7 @@ public function getProtocolVersion() * If the status text is null it will be automatically populated for the known * status codes and left empty otherwise. * - * @return Response + * @return $this * * @throws \InvalidArgumentException When the HTTP status code is not valid */ @@ -490,7 +490,7 @@ public function getStatusCode() * * @param string $charset Character set * - * @return Response + * @return $this */ public function setCharset($charset) { @@ -563,7 +563,7 @@ public function isValidateable() * * It makes the response ineligible for serving other clients. * - * @return Response + * @return $this */ public function setPrivate() { @@ -578,7 +578,7 @@ public function setPrivate() * * It makes the response eligible for serving other clients. * - * @return Response + * @return $this */ public function setPublic() { @@ -620,7 +620,7 @@ public function getDate() * * @param \DateTime $date A \DateTime instance * - * @return Response + * @return $this */ public function setDate(\DateTime $date) { @@ -647,7 +647,7 @@ public function getAge() /** * Marks the response stale by setting the Age header to be equal to the maximum age of the response. * - * @return Response + * @return $this */ public function expire() { @@ -680,7 +680,7 @@ public function getExpires() * * @param \DateTime|null $date A \DateTime instance or null to remove the header * - * @return Response + * @return $this */ public function setExpires(\DateTime $date = null) { @@ -726,7 +726,7 @@ public function getMaxAge() * * @param int $value Number of seconds * - * @return Response + * @return $this */ public function setMaxAge($value) { @@ -742,7 +742,7 @@ public function setMaxAge($value) * * @param int $value Number of seconds * - * @return Response + * @return $this */ public function setSharedMaxAge($value) { @@ -776,7 +776,7 @@ public function getTtl() * * @param int $seconds Number of seconds * - * @return Response + * @return $this */ public function setTtl($seconds) { @@ -792,7 +792,7 @@ public function setTtl($seconds) * * @param int $seconds Number of seconds * - * @return Response + * @return $this */ public function setClientTtl($seconds) { @@ -820,7 +820,7 @@ public function getLastModified() * * @param \DateTime|null $date A \DateTime instance or null to remove the header * - * @return Response + * @return $this */ public function setLastModified(\DateTime $date = null) { @@ -851,7 +851,7 @@ public function getEtag() * @param string|null $etag The ETag unique identifier or null to remove the header * @param bool $weak Whether you want a weak ETag or not * - * @return Response + * @return $this */ public function setEtag($etag = null, $weak = false) { @@ -875,7 +875,7 @@ public function setEtag($etag = null, $weak = false) * * @param array $options An array of cache options * - * @return Response + * @return $this * * @throws \InvalidArgumentException */ @@ -926,7 +926,7 @@ public function setCache(array $options) * This sets the status, removes the body, and discards any headers * that MUST NOT be included in 304 responses. * - * @return Response + * @return $this * * @see http://tools.ietf.org/html/rfc2616#section-10.3.5 */ @@ -978,7 +978,7 @@ public function getVary() * @param string|array $headers * @param bool $replace Whether to replace the actual value or not (true by default) * - * @return Response + * @return $this */ public function setVary($headers, $replace = true) { diff --git a/src/Symfony/Component/HttpFoundation/StreamedResponse.php b/src/Symfony/Component/HttpFoundation/StreamedResponse.php index 8274dc43a0ae..8be624436c1b 100644 --- a/src/Symfony/Component/HttpFoundation/StreamedResponse.php +++ b/src/Symfony/Component/HttpFoundation/StreamedResponse.php @@ -55,7 +55,7 @@ public function __construct($callback = null, $status = 200, $headers = array()) * @param int $status The response status code * @param array $headers An array of response headers * - * @return StreamedResponse + * @return static */ public static function create($callback = null, $status = 200, $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Profiler/Profile.php b/src/Symfony/Component/HttpKernel/Profiler/Profile.php index a4e4ba6ad66b..d6be0c7db277 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/Profile.php +++ b/src/Symfony/Component/HttpKernel/Profiler/Profile.php @@ -76,7 +76,7 @@ public function getToken() /** * Sets the parent token. * - * @param Profile $parent The parent Profile + * @param Profile $parent */ public function setParent(Profile $parent) { @@ -86,7 +86,7 @@ public function setParent(Profile $parent) /** * Returns the parent profile. * - * @return Profile The parent profile + * @return self */ public function getParent() { @@ -191,7 +191,7 @@ public function getStatusCode() /** * Finds children profilers. * - * @return Profile[] An array of Profile + * @return self[] */ public function getChildren() { @@ -201,7 +201,7 @@ public function getChildren() /** * Sets children profiler. * - * @param Profile[] $children An array of Profile + * @param Profile[] $children */ public function setChildren(array $children) { @@ -214,7 +214,7 @@ public function setChildren(array $children) /** * Adds the child token. * - * @param Profile $child The child Profile + * @param Profile $child */ public function addChild(Profile $child) { diff --git a/src/Symfony/Component/Intl/Collator/Collator.php b/src/Symfony/Component/Intl/Collator/Collator.php index e3dca20c8d1a..6d79bf30ecc3 100644 --- a/src/Symfony/Component/Intl/Collator/Collator.php +++ b/src/Symfony/Component/Intl/Collator/Collator.php @@ -86,7 +86,7 @@ public function __construct($locale) * * @param string $locale The locale code. The only currently supported locale is "en" (or null using the default locale, i.e. "en") * - * @return Collator + * @return self * * @throws MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed */ diff --git a/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php b/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php index e6b01d3290e2..3efd5e7bebff 100644 --- a/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php +++ b/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php @@ -171,7 +171,7 @@ public function __construct($locale, $datetype, $timetype, $timezone = null, $ca * One of the calendar constants. * @param string $pattern Optional pattern to use when formatting * - * @return IntlDateFormatter + * @return self * * @see http://www.php.net/manual/en/intldateformatter.create.php * @see http://userguide.icu-project.org/formatparse/datetime diff --git a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php index d3cd29dd85de..47e7c60f22c1 100644 --- a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php +++ b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php @@ -302,7 +302,7 @@ public function __construct($locale = 'en', $style = null, $pattern = null) * NumberFormat::PATTERN_RULEBASED. It must conform to the syntax * described in the ICU DecimalFormat or ICU RuleBasedNumberFormat documentation * - * @return NumberFormatter + * @return self * * @see http://www.php.net/manual/en/numberformatter.create.php * @see http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#_details diff --git a/src/Symfony/Component/Intl/Util/SvnRepository.php b/src/Symfony/Component/Intl/Util/SvnRepository.php index 6e5d87b13ffd..8b5e8f31f859 100644 --- a/src/Symfony/Component/Intl/Util/SvnRepository.php +++ b/src/Symfony/Component/Intl/Util/SvnRepository.php @@ -42,7 +42,7 @@ class SvnRepository * @param string $url The URL to download from * @param string $targetDir The directory in which to store the repository * - * @return SvnRepository The directory where the data is stored + * @return static * * @throws RuntimeException If an error occurs during the download. */ diff --git a/src/Symfony/Component/OptionsResolver/OptionsResolver.php b/src/Symfony/Component/OptionsResolver/OptionsResolver.php index bc763202f228..cba98630533e 100644 --- a/src/Symfony/Component/OptionsResolver/OptionsResolver.php +++ b/src/Symfony/Component/OptionsResolver/OptionsResolver.php @@ -152,7 +152,7 @@ class OptionsResolver implements Options, OptionsResolverInterface * @param string $option The name of the option * @param mixed $value The default value of the option * - * @return OptionsResolver This instance + * @return $this * * @throws AccessException If called from a lazy option or normalizer */ @@ -215,7 +215,7 @@ public function setDefault($option, $value) * * @param array $defaults The default values to set * - * @return OptionsResolver This instance + * @return $this * * @throws AccessException If called from a lazy option or normalizer */ @@ -248,7 +248,7 @@ public function hasDefault($option) * * @param string|string[] $optionNames One or more option names * - * @return OptionsResolver This instance + * @return $this * * @throws AccessException If called from a lazy option or normalizer */ @@ -329,7 +329,7 @@ public function getMissingOptions() * * @param string|string[] $optionNames One or more option names * - * @return OptionsResolver This instance + * @return $this * * @throws AccessException If called from a lazy option or normalizer */ @@ -396,7 +396,7 @@ public function getDefinedOptions() * @param string $option The option name * @param \Closure $normalizer The normalizer * - * @return OptionsResolver This instance + * @return $this * * @throws UndefinedOptionsException If the option is undefined * @throws AccessException If called from a lazy option or normalizer @@ -428,7 +428,7 @@ public function setNormalizer($option, \Closure $normalizer) * * @param array $normalizers An array of closures * - * @return OptionsResolver This instance + * @return $this * * @throws UndefinedOptionsException If the option is undefined * @throws AccessException If called from a lazy option or normalizer @@ -463,7 +463,7 @@ public function setNormalizers(array $normalizers) * @param string $option The option name * @param mixed $allowedValues One or more acceptable values/closures * - * @return OptionsResolver This instance + * @return $this * * @throws UndefinedOptionsException If the option is undefined * @throws AccessException If called from a lazy option or normalizer @@ -519,7 +519,7 @@ public function setAllowedValues($option, $allowedValues = null) * @param string $option The option name * @param mixed $allowedValues One or more acceptable values/closures * - * @return OptionsResolver This instance + * @return $this * * @throws UndefinedOptionsException If the option is undefined * @throws AccessException If called from a lazy option or normalizer @@ -575,7 +575,7 @@ public function addAllowedValues($option, $allowedValues = null) * @param string $option The option name * @param string|string[] $allowedTypes One or more accepted types * - * @return OptionsResolver This instance + * @return $this * * @throws UndefinedOptionsException If the option is undefined * @throws AccessException If called from a lazy option or normalizer @@ -625,7 +625,7 @@ public function setAllowedTypes($option, $allowedTypes = null) * @param string $option The option name * @param string|string[] $allowedTypes One or more accepted types * - * @return OptionsResolver This instance + * @return $this * * @throws UndefinedOptionsException If the option is undefined * @throws AccessException If called from a lazy option or normalizer @@ -674,7 +674,7 @@ public function addAllowedTypes($option, $allowedTypes = null) * * @param string|string[] $optionNames One or more option names * - * @return OptionsResolver This instance + * @return $this * * @throws AccessException If called from a lazy option or normalizer */ @@ -695,7 +695,7 @@ public function remove($optionNames) /** * Removes all options. * - * @return OptionsResolver This instance + * @return $this * * @throws AccessException If called from a lazy option or normalizer */ diff --git a/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php b/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php index cefba9cabeb3..f8b6885742d8 100644 --- a/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php +++ b/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php @@ -43,7 +43,7 @@ interface OptionsResolverInterface * @param array $defaultValues A list of option names as keys and default * values or closures as values. * - * @return OptionsResolverInterface The resolver instance + * @return $this */ public function setDefaults(array $defaultValues); @@ -58,7 +58,7 @@ public function setDefaults(array $defaultValues); * @param array $defaultValues A list of option names as keys and default * values or closures as values. * - * @return OptionsResolverInterface The resolver instance + * @return $this */ public function replaceDefaults(array $defaultValues); @@ -73,7 +73,7 @@ public function replaceDefaults(array $defaultValues); * * @param array $optionNames A list of option names * - * @return OptionsResolverInterface The resolver instance + * @return $this */ public function setOptional(array $optionNames); @@ -85,7 +85,7 @@ public function setOptional(array $optionNames); * * @param array $optionNames A list of option names * - * @return OptionsResolverInterface The resolver instance + * @return $this */ public function setRequired($optionNames); @@ -96,7 +96,7 @@ public function setRequired($optionNames); * with values acceptable for that option as * values. * - * @return OptionsResolverInterface The resolver instance + * @return $this * * @throws InvalidOptionsException If an option has not been defined * (see {@link isKnown()}) for which @@ -113,7 +113,7 @@ public function setAllowedValues($allowedValues); * with values acceptable for that option as * values. * - * @return OptionsResolverInterface The resolver instance + * @return $this * * @throws InvalidOptionsException If an option has not been defined * (see {@link isKnown()}) for which @@ -127,7 +127,7 @@ public function addAllowedValues($allowedValues); * @param array $allowedTypes A list of option names as keys and type * names passed as string or array as values. * - * @return OptionsResolverInterface The resolver instance + * @return $this * * @throws InvalidOptionsException If an option has not been defined for * which an allowed type is set. @@ -142,7 +142,7 @@ public function setAllowedTypes($allowedTypes); * @param array $allowedTypes A list of option names as keys and type * names passed as string or array as values. * - * @return OptionsResolverInterface The resolver instance + * @return $this * * @throws InvalidOptionsException If an option has not been defined for * which an allowed type is set. @@ -165,7 +165,7 @@ public function addAllowedTypes($allowedTypes); * * @param array $normalizers An array of closures * - * @return OptionsResolverInterface The resolver instance + * @return $this */ public function setNormalizers(array $normalizers); diff --git a/src/Symfony/Component/Process/Pipes/UnixPipes.php b/src/Symfony/Component/Process/Pipes/UnixPipes.php index 46130302dabf..c4babcdf5c92 100644 --- a/src/Symfony/Component/Process/Pipes/UnixPipes.php +++ b/src/Symfony/Component/Process/Pipes/UnixPipes.php @@ -149,7 +149,7 @@ public function areOpen() * @param Process $process * @param string|resource $input * - * @return UnixPipes + * @return static */ public static function create(Process $process, $input) { diff --git a/src/Symfony/Component/Process/Pipes/WindowsPipes.php b/src/Symfony/Component/Process/Pipes/WindowsPipes.php index 7b2e5b4b23c3..87a781ea9204 100644 --- a/src/Symfony/Component/Process/Pipes/WindowsPipes.php +++ b/src/Symfony/Component/Process/Pipes/WindowsPipes.php @@ -183,7 +183,7 @@ public function close() * @param Process $process The process * @param $input * - * @return WindowsPipes + * @return static */ public static function create(Process $process, $input) { diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 5b23192eb973..23d561662eba 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -314,7 +314,7 @@ public function start($callback = null) * @param callable|null $callback A PHP callback to run whenever there is some * output available on STDOUT or STDERR * - * @return Process The new process + * @return $this * * @throws RuntimeException When process can't be launched * @throws RuntimeException When process is already running @@ -389,7 +389,7 @@ public function getPid() * * @param int $signal A valid POSIX signal (see http://www.php.net/manual/en/pcntl.constants.php) * - * @return Process + * @return $this * * @throws LogicException In case the process is not running * @throws RuntimeException In case --enable-sigchild is activated and the process can't be killed @@ -405,7 +405,7 @@ public function signal($signal) /** * Disables fetching output and error output from the underlying process. * - * @return Process + * @return $this * * @throws RuntimeException In case the process is already running * @throws LogicException if an idle timeout is set @@ -427,7 +427,7 @@ public function disableOutput() /** * Enables fetching output and error output from the underlying process. * - * @return Process + * @return $this * * @throws RuntimeException In case the process is already running */ @@ -499,7 +499,7 @@ public function getIncrementalOutput() /** * Clears the process output. * - * @return Process + * @return $this */ public function clearOutput() { @@ -558,7 +558,7 @@ public function getIncrementalErrorOutput() /** * Clears the process output. * - * @return Process + * @return $this */ public function clearErrorOutput() { diff --git a/src/Symfony/Component/Process/ProcessBuilder.php b/src/Symfony/Component/Process/ProcessBuilder.php index 0f4764638a3e..54877a828281 100644 --- a/src/Symfony/Component/Process/ProcessBuilder.php +++ b/src/Symfony/Component/Process/ProcessBuilder.php @@ -46,7 +46,7 @@ public function __construct(array $arguments = array()) * * @param string[] $arguments An array of arguments * - * @return ProcessBuilder + * @return static */ public static function create(array $arguments = array()) { @@ -58,7 +58,7 @@ public static function create(array $arguments = array()) * * @param string $argument A command argument * - * @return ProcessBuilder + * @return $this */ public function add($argument) { @@ -74,7 +74,7 @@ public function add($argument) * * @param string|array $prefix A command prefix or an array of command prefixes * - * @return ProcessBuilder + * @return $this */ public function setPrefix($prefix) { @@ -91,7 +91,7 @@ public function setPrefix($prefix) * * @param string[] $arguments * - * @return ProcessBuilder + * @return $this */ public function setArguments(array $arguments) { @@ -105,7 +105,7 @@ public function setArguments(array $arguments) * * @param null|string $cwd The working directory * - * @return ProcessBuilder + * @return $this */ public function setWorkingDirectory($cwd) { @@ -119,7 +119,7 @@ public function setWorkingDirectory($cwd) * * @param bool $inheritEnv * - * @return ProcessBuilder + * @return $this */ public function inheritEnvironmentVariables($inheritEnv = true) { @@ -137,7 +137,7 @@ public function inheritEnvironmentVariables($inheritEnv = true) * @param string $name The variable name * @param null|string $value The variable value * - * @return ProcessBuilder + * @return $this */ public function setEnv($name, $value) { @@ -155,7 +155,7 @@ public function setEnv($name, $value) * * @param array $variables The variables * - * @return ProcessBuilder + * @return $this */ public function addEnvironmentVariables(array $variables) { @@ -169,7 +169,7 @@ public function addEnvironmentVariables(array $variables) * * @param mixed $input The input as a string * - * @return ProcessBuilder + * @return $this * * @throws InvalidArgumentException In case the argument is invalid * @@ -189,7 +189,7 @@ public function setInput($input) * * @param float|null $timeout * - * @return ProcessBuilder + * @return $this * * @throws InvalidArgumentException */ @@ -218,7 +218,7 @@ public function setTimeout($timeout) * @param string $name The option name * @param string $value The option value * - * @return ProcessBuilder + * @return $this */ public function setOption($name, $value) { @@ -230,7 +230,7 @@ public function setOption($name, $value) /** * Disables fetching output and error output from the underlying process. * - * @return ProcessBuilder + * @return $this */ public function disableOutput() { @@ -242,7 +242,7 @@ public function disableOutput() /** * Enables fetching output and error output from the underlying process. * - * @return ProcessBuilder + * @return $this */ public function enableOutput() { diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccess.php b/src/Symfony/Component/PropertyAccess/PropertyAccess.php index bd432a3a50bf..21b926e8282d 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccess.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccess.php @@ -21,7 +21,7 @@ final class PropertyAccess /** * Creates a property accessor with the default configuration. * - * @return PropertyAccessor The new property accessor + * @return PropertyAccessor */ public static function createPropertyAccessor() { @@ -31,7 +31,7 @@ public static function createPropertyAccessor() /** * Creates a property accessor builder. * - * @return PropertyAccessorBuilder The new property accessor builder + * @return PropertyAccessor */ public static function createPropertyAccessorBuilder() { @@ -41,7 +41,7 @@ public static function createPropertyAccessorBuilder() /** * Alias of {@link createPropertyAccessor}. * - * @return PropertyAccessor The new property accessor + * @return PropertyAccessor * * @deprecated since version 2.3, to be removed in 3.0. * Use {@link createPropertyAccessor()} instead. diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php index fc8ac4ed2dd4..11e67b091bb6 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php @@ -31,7 +31,7 @@ class PropertyAccessorBuilder /** * Enables the use of "__call" by the PropertyAccessor. * - * @return PropertyAccessorBuilder The builder object + * @return $this */ public function enableMagicCall() { @@ -43,7 +43,7 @@ public function enableMagicCall() /** * Disables the use of "__call" by the PropertyAccessor. * - * @return PropertyAccessorBuilder The builder object + * @return $this */ public function disableMagicCall() { @@ -66,7 +66,7 @@ public function isMagicCallEnabled() * This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() * which are always created on-the-fly. * - * @return PropertyAccessorBuilder The builder object + * @return $this */ public function enableExceptionOnInvalidIndex() { @@ -80,7 +80,7 @@ public function enableExceptionOnInvalidIndex() * * Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index. * - * @return PropertyAccessorBuilder The builder object + * @return $this */ public function disableExceptionOnInvalidIndex() { diff --git a/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php b/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php index 0f2815b73e46..2bfdb2e8829b 100644 --- a/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php +++ b/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php @@ -86,7 +86,7 @@ public function getIterator() /** * Returns the root of the collection. * - * @return DumperCollection The root collection + * @return self The root collection */ public function getRoot() { diff --git a/src/Symfony/Component/Routing/Matcher/Dumper/DumperPrefixCollection.php b/src/Symfony/Component/Routing/Matcher/Dumper/DumperPrefixCollection.php index dd1a0d90e13e..5ea622c7d49c 100644 --- a/src/Symfony/Component/Routing/Matcher/Dumper/DumperPrefixCollection.php +++ b/src/Symfony/Component/Routing/Matcher/Dumper/DumperPrefixCollection.php @@ -50,7 +50,7 @@ public function setPrefix($prefix) * * @param DumperRoute $route The route * - * @return DumperPrefixCollection The node the route was added to + * @return self * * @throws \LogicException */ diff --git a/src/Symfony/Component/Routing/RequestContext.php b/src/Symfony/Component/Routing/RequestContext.php index 862b824d4588..9b15cd07d54a 100644 --- a/src/Symfony/Component/Routing/RequestContext.php +++ b/src/Symfony/Component/Routing/RequestContext.php @@ -66,7 +66,7 @@ public function __construct($baseUrl = '', $method = 'GET', $host = 'localhost', * * @param Request $request A Request instance * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function fromRequest(Request $request) { @@ -97,7 +97,7 @@ public function getBaseUrl() * * @param string $baseUrl The base URL * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setBaseUrl($baseUrl) { @@ -121,7 +121,7 @@ public function getPathInfo() * * @param string $pathInfo The path info * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setPathInfo($pathInfo) { @@ -147,7 +147,7 @@ public function getMethod() * * @param string $method The HTTP method * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setMethod($method) { @@ -173,7 +173,7 @@ public function getHost() * * @param string $host The HTTP host * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setHost($host) { @@ -197,7 +197,7 @@ public function getScheme() * * @param string $scheme The HTTP scheme * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setScheme($scheme) { @@ -221,7 +221,7 @@ public function getHttpPort() * * @param int $httpPort The HTTP port * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setHttpPort($httpPort) { @@ -245,7 +245,7 @@ public function getHttpsPort() * * @param int $httpsPort The HTTPS port * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setHttpsPort($httpsPort) { @@ -269,7 +269,7 @@ public function getQueryString() * * @param string $queryString The query string (after "?") * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setQueryString($queryString) { @@ -294,7 +294,7 @@ public function getParameters() * * @param array $parameters The parameters * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setParameters(array $parameters) { @@ -333,7 +333,7 @@ public function hasParameter($name) * @param string $name A parameter name * @param mixed $parameter The parameter value * - * @return RequestContext The current instance, implementing a fluent interface + * @return $this */ public function setParameter($name, $parameter) { diff --git a/src/Symfony/Component/Routing/Route.php b/src/Symfony/Component/Routing/Route.php index b485bded517e..fee2002c9d9b 100644 --- a/src/Symfony/Component/Routing/Route.php +++ b/src/Symfony/Component/Routing/Route.php @@ -159,7 +159,7 @@ public function getPattern() * * @param string $pattern The path pattern * - * @return Route The current Route instance + * @return $this * * @deprecated since version 2.2, to be removed in 3.0. Use setPath instead. */ @@ -187,7 +187,7 @@ public function getPath() * * @param string $pattern The path pattern * - * @return Route The current Route instance + * @return $this */ public function setPath($pattern) { @@ -216,7 +216,7 @@ public function getHost() * * @param string $pattern The host pattern * - * @return Route The current Route instance + * @return $this */ public function setHost($pattern) { @@ -245,7 +245,7 @@ public function getSchemes() * * @param string|array $schemes The scheme or an array of schemes * - * @return Route The current Route instance + * @return $this */ public function setSchemes($schemes) { @@ -294,7 +294,7 @@ public function getMethods() * * @param string|array $methods The method or an array of methods * - * @return Route The current Route instance + * @return $this */ public function setMethods($methods) { @@ -329,7 +329,7 @@ public function getOptions() * * @param array $options The options * - * @return Route The current Route instance + * @return $this */ public function setOptions(array $options) { @@ -347,7 +347,7 @@ public function setOptions(array $options) * * @param array $options The options * - * @return Route The current Route instance + * @return $this */ public function addOptions(array $options) { @@ -367,7 +367,7 @@ public function addOptions(array $options) * @param string $name An option name * @param mixed $value The option value * - * @return Route The current Route instance + * @return $this */ public function setOption($name, $value) { @@ -418,7 +418,7 @@ public function getDefaults() * * @param array $defaults The defaults * - * @return Route The current Route instance + * @return $this */ public function setDefaults(array $defaults) { @@ -434,7 +434,7 @@ public function setDefaults(array $defaults) * * @param array $defaults The defaults * - * @return Route The current Route instance + * @return $this */ public function addDefaults(array $defaults) { @@ -476,7 +476,7 @@ public function hasDefault($name) * @param string $name A variable name * @param mixed $default The default value * - * @return Route The current Route instance + * @return $this */ public function setDefault($name, $default) { @@ -503,7 +503,7 @@ public function getRequirements() * * @param array $requirements The requirements * - * @return Route The current Route instance + * @return $this */ public function setRequirements(array $requirements) { @@ -519,7 +519,7 @@ public function setRequirements(array $requirements) * * @param array $requirements The requirements * - * @return Route The current Route instance + * @return $this */ public function addRequirements(array $requirements) { @@ -567,7 +567,7 @@ public function hasRequirement($key) * @param string $key The key * @param string $regex The regex * - * @return Route The current Route instance + * @return $this */ public function setRequirement($key, $regex) { @@ -594,7 +594,7 @@ public function getCondition() * * @param string $condition The condition * - * @return Route The current Route instance + * @return $this */ public function setCondition($condition) { diff --git a/src/Symfony/Component/Security/Acl/Domain/ObjectIdentity.php b/src/Symfony/Component/Security/Acl/Domain/ObjectIdentity.php index ec817e2e87b7..d2f353e653ff 100644 --- a/src/Symfony/Component/Security/Acl/Domain/ObjectIdentity.php +++ b/src/Symfony/Component/Security/Acl/Domain/ObjectIdentity.php @@ -52,7 +52,7 @@ public function __construct($identifier, $type) * * @param object $domainObject * - * @return ObjectIdentity + * @return self * * @throws InvalidDomainObjectException */ diff --git a/src/Symfony/Component/Security/Acl/Domain/UserSecurityIdentity.php b/src/Symfony/Component/Security/Acl/Domain/UserSecurityIdentity.php index ea17c635d512..5766148df0ed 100644 --- a/src/Symfony/Component/Security/Acl/Domain/UserSecurityIdentity.php +++ b/src/Symfony/Component/Security/Acl/Domain/UserSecurityIdentity.php @@ -52,7 +52,7 @@ public function __construct($username, $class) * * @param UserInterface $user * - * @return UserSecurityIdentity + * @return self */ public static function fromAccount(UserInterface $user) { @@ -64,7 +64,7 @@ public static function fromAccount(UserInterface $user) * * @param TokenInterface $token * - * @return UserSecurityIdentity + * @return self */ public static function fromToken(TokenInterface $token) { diff --git a/src/Symfony/Component/Security/Acl/Permission/MaskBuilderInterface.php b/src/Symfony/Component/Security/Acl/Permission/MaskBuilderInterface.php index ef183debdf9c..98184c560eba 100644 --- a/src/Symfony/Component/Security/Acl/Permission/MaskBuilderInterface.php +++ b/src/Symfony/Component/Security/Acl/Permission/MaskBuilderInterface.php @@ -21,7 +21,7 @@ interface MaskBuilderInterface * * @param int $mask * - * @return MaskBuilderInterface + * @return $this * * @throws \InvalidArgumentException if $mask is not an integer */ @@ -39,7 +39,7 @@ public function get(); * * @param mixed $mask * - * @return MaskBuilderInterface + * @return $this * * @throws \InvalidArgumentException */ @@ -50,7 +50,7 @@ public function add($mask); * * @param mixed $mask * - * @return MaskBuilderInterface + * @return $this * * @throws \InvalidArgumentException */ @@ -59,7 +59,7 @@ public function remove($mask); /** * Resets the PermissionBuilder. * - * @return MaskBuilderInterface + * @return $this */ public function reset(); diff --git a/src/Symfony/Component/Stopwatch/Section.php b/src/Symfony/Component/Stopwatch/Section.php index fb416efedce2..e2d4dec5cb71 100644 --- a/src/Symfony/Component/Stopwatch/Section.php +++ b/src/Symfony/Component/Stopwatch/Section.php @@ -69,7 +69,7 @@ public function get($id) * * @param string|null $id null to create a new section, the identifier to re-open an existing one * - * @return Section A child section + * @return self */ public function open($id) { @@ -93,7 +93,7 @@ public function getId() * * @param string $id The session identifier * - * @return Section The current section + * @return $this */ public function setId($id) { diff --git a/src/Symfony/Component/Stopwatch/Stopwatch.php b/src/Symfony/Component/Stopwatch/Stopwatch.php index 44f18d5e4252..8ad93165bfd7 100644 --- a/src/Symfony/Component/Stopwatch/Stopwatch.php +++ b/src/Symfony/Component/Stopwatch/Stopwatch.php @@ -90,7 +90,7 @@ public function stopSection($id) * @param string $name The event name * @param string $category The event category * - * @return StopwatchEvent A StopwatchEvent instance + * @return StopwatchEvent */ public function start($name, $category = null) { @@ -114,7 +114,7 @@ public function isStarted($name) * * @param string $name The event name * - * @return StopwatchEvent A StopwatchEvent instance + * @return StopwatchEvent */ public function stop($name) { @@ -126,7 +126,7 @@ public function stop($name) * * @param string $name The event name * - * @return StopwatchEvent A StopwatchEvent instance + * @return StopwatchEvent */ public function lap($name) { @@ -138,7 +138,7 @@ public function lap($name) * * @param string $name The event name * - * @return StopwatchEvent A StopwatchEvent instance + * @return StopwatchEvent */ public function getEvent($name) { @@ -150,7 +150,7 @@ public function getEvent($name) * * @param string $id A section identifier * - * @return StopwatchEvent[] An array of StopwatchEvent instances + * @return StopwatchEvent[] */ public function getSectionEvents($id) { diff --git a/src/Symfony/Component/Stopwatch/StopwatchEvent.php b/src/Symfony/Component/Stopwatch/StopwatchEvent.php index 957a5d0dae0a..16a30db2aa50 100644 --- a/src/Symfony/Component/Stopwatch/StopwatchEvent.php +++ b/src/Symfony/Component/Stopwatch/StopwatchEvent.php @@ -75,7 +75,7 @@ public function getOrigin() /** * Starts a new event period. * - * @return StopwatchEvent The event + * @return $this */ public function start() { @@ -87,7 +87,7 @@ public function start() /** * Stops the last started event period. * - * @return StopwatchEvent The event + * @return $this * * @throws \LogicException When stop() is called without a matching call to start() */ @@ -115,7 +115,7 @@ public function isStarted() /** * Stops the current period and then starts a new one. * - * @return StopwatchEvent The event + * @return $this */ public function lap() { diff --git a/src/Symfony/Component/Templating/TemplateReferenceInterface.php b/src/Symfony/Component/Templating/TemplateReferenceInterface.php index c687c5350b0d..45d9421f6b40 100644 --- a/src/Symfony/Component/Templating/TemplateReferenceInterface.php +++ b/src/Symfony/Component/Templating/TemplateReferenceInterface.php @@ -31,7 +31,7 @@ public function all(); * @param string $name The parameter name * @param string $value The parameter value * - * @return TemplateReferenceInterface The TemplateReferenceInterface instance + * @return $this * * @throws \InvalidArgumentException if the parameter name is not supported */ diff --git a/src/Symfony/Component/Translation/MessageCatalogueInterface.php b/src/Symfony/Component/Translation/MessageCatalogueInterface.php index b1b516dc289c..40054f05c4c1 100644 --- a/src/Symfony/Component/Translation/MessageCatalogueInterface.php +++ b/src/Symfony/Component/Translation/MessageCatalogueInterface.php @@ -105,7 +105,7 @@ public function add($messages, $domain = 'messages'); * * The two catalogues must have the same locale. * - * @param MessageCatalogueInterface $catalogue A MessageCatalogueInterface instance + * @param self $catalogue */ public function addCatalogue(MessageCatalogueInterface $catalogue); @@ -115,14 +115,14 @@ public function addCatalogue(MessageCatalogueInterface $catalogue); * * This is used to provide default translations when they do not exist for the current locale. * - * @param MessageCatalogueInterface $catalogue A MessageCatalogueInterface instance + * @param self $catalogue */ public function addFallbackCatalogue(MessageCatalogueInterface $catalogue); /** * Gets the fallback catalogue. * - * @return MessageCatalogueInterface|null A MessageCatalogueInterface instance or null when no fallback has been set + * @return self|null A MessageCatalogueInterface instance or null when no fallback has been set */ public function getFallbackCatalogue(); diff --git a/src/Symfony/Component/Validator/Mapping/ClassMetadata.php b/src/Symfony/Component/Validator/Mapping/ClassMetadata.php index 5df8517a479a..b6c799e192a9 100644 --- a/src/Symfony/Component/Validator/Mapping/ClassMetadata.php +++ b/src/Symfony/Component/Validator/Mapping/ClassMetadata.php @@ -261,7 +261,7 @@ public function addConstraint(Constraint $constraint) * @param string $property The name of the property * @param Constraint $constraint The constraint * - * @return ClassMetadata This object + * @return $this */ public function addPropertyConstraint($property, Constraint $constraint) { @@ -282,7 +282,7 @@ public function addPropertyConstraint($property, Constraint $constraint) * @param string $property * @param Constraint[] $constraints * - * @return ClassMetadata + * @return $this */ public function addPropertyConstraints($property, array $constraints) { @@ -302,7 +302,7 @@ public function addPropertyConstraints($property, array $constraints) * @param string $property The name of the property * @param Constraint $constraint The constraint * - * @return ClassMetadata This object + * @return $this */ public function addGetterConstraint($property, Constraint $constraint) { @@ -323,7 +323,7 @@ public function addGetterConstraint($property, Constraint $constraint) * @param string $property * @param Constraint[] $constraints * - * @return ClassMetadata + * @return $this */ public function addGetterConstraints($property, array $constraints) { @@ -448,7 +448,7 @@ public function getConstrainedProperties() * * @param array $groupSequence An array of group names * - * @return ClassMetadata + * @return $this * * @throws GroupDefinitionException */ diff --git a/src/Symfony/Component/Validator/Mapping/GenericMetadata.php b/src/Symfony/Component/Validator/Mapping/GenericMetadata.php index 458ad34fca6c..97915ac71307 100644 --- a/src/Symfony/Component/Validator/Mapping/GenericMetadata.php +++ b/src/Symfony/Component/Validator/Mapping/GenericMetadata.php @@ -121,7 +121,7 @@ public function __clone() * * @param Constraint $constraint The constraint to add * - * @return GenericMetadata This object + * @return $this * * @throws ConstraintDefinitionException When trying to add the * {@link Traverse} constraint @@ -167,7 +167,7 @@ public function addConstraint(Constraint $constraint) * * @param Constraint[] $constraints The constraints to add * - * @return GenericMetadata This object + * @return $this */ public function addConstraints(array $constraints) { diff --git a/src/Symfony/Component/Validator/Validator/ContextualValidatorInterface.php b/src/Symfony/Component/Validator/Validator/ContextualValidatorInterface.php index 7d7ebe73b081..1cc96c834e6f 100644 --- a/src/Symfony/Component/Validator/Validator/ContextualValidatorInterface.php +++ b/src/Symfony/Component/Validator/Validator/ContextualValidatorInterface.php @@ -29,7 +29,7 @@ interface ContextualValidatorInterface * * @param string $path The path to append * - * @return ContextualValidatorInterface This validator + * @return $this */ public function atPath($path); @@ -46,7 +46,7 @@ public function atPath($path); * validate. If none is given, * "Default" is assumed * - * @return ContextualValidatorInterface This validator + * @return $this */ public function validate($value, $constraints = null, $groups = null); @@ -59,7 +59,7 @@ public function validate($value, $constraints = null, $groups = null); * @param array|null $groups The validation groups to validate. If * none is given, "Default" is assumed * - * @return ContextualValidatorInterface This validator + * @return $this */ public function validateProperty($object, $propertyName, $groups = null); @@ -74,7 +74,7 @@ public function validateProperty($object, $propertyName, $groups = null); * @param array|null $groups The validation groups to validate. If * none is given, "Default" is assumed * - * @return ContextualValidatorInterface This validator + * @return $this */ public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null); diff --git a/src/Symfony/Component/Validator/ValidatorBuilderInterface.php b/src/Symfony/Component/Validator/ValidatorBuilderInterface.php index 690d28678995..b9b33e4fbcad 100644 --- a/src/Symfony/Component/Validator/ValidatorBuilderInterface.php +++ b/src/Symfony/Component/Validator/ValidatorBuilderInterface.php @@ -28,7 +28,7 @@ interface ValidatorBuilderInterface * * @param ObjectInitializerInterface $initializer The initializer * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addObjectInitializer(ObjectInitializerInterface $initializer); @@ -37,7 +37,7 @@ public function addObjectInitializer(ObjectInitializerInterface $initializer); * * @param array $initializers The initializer * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addObjectInitializers(array $initializers); @@ -46,7 +46,7 @@ public function addObjectInitializers(array $initializers); * * @param string $path The path to the mapping file * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addXmlMapping($path); @@ -55,7 +55,7 @@ public function addXmlMapping($path); * * @param array $paths The paths to the mapping files * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addXmlMappings(array $paths); @@ -64,7 +64,7 @@ public function addXmlMappings(array $paths); * * @param string $path The path to the mapping file * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addYamlMapping($path); @@ -73,7 +73,7 @@ public function addYamlMapping($path); * * @param array $paths The paths to the mapping files * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addYamlMappings(array $paths); @@ -82,7 +82,7 @@ public function addYamlMappings(array $paths); * * @param string $methodName The name of the method * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addMethodMapping($methodName); @@ -91,7 +91,7 @@ public function addMethodMapping($methodName); * * @param array $methodNames The names of the methods * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function addMethodMappings(array $methodNames); @@ -100,14 +100,14 @@ public function addMethodMappings(array $methodNames); * * @param Reader $annotationReader The annotation reader to be used * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function enableAnnotationMapping(Reader $annotationReader = null); /** * Disables annotation based constraint mapping. * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function disableAnnotationMapping(); @@ -116,7 +116,7 @@ public function disableAnnotationMapping(); * * @param MetadataFactoryInterface $metadataFactory The metadata factory * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function setMetadataFactory(MetadataFactoryInterface $metadataFactory); @@ -125,7 +125,7 @@ public function setMetadataFactory(MetadataFactoryInterface $metadataFactory); * * @param CacheInterface $cache The cache instance * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function setMetadataCache(CacheInterface $cache); @@ -134,7 +134,7 @@ public function setMetadataCache(CacheInterface $cache); * * @param ConstraintValidatorFactoryInterface $validatorFactory The validator factory * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory); @@ -143,7 +143,7 @@ public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterfac * * @param TranslatorInterface $translator The translator instance * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function setTranslator(TranslatorInterface $translator); @@ -156,7 +156,7 @@ public function setTranslator(TranslatorInterface $translator); * * @param string $translationDomain The translation domain of the violation messages * - * @return ValidatorBuilderInterface The builder object + * @return $this */ public function setTranslationDomain($translationDomain); @@ -165,7 +165,7 @@ public function setTranslationDomain($translationDomain); * * @param PropertyAccessorInterface $propertyAccessor The property accessor * - * @return ValidatorBuilderInterface The builder object + * @return $this * * @deprecated since version 2.5, to be removed in 3.0. */ @@ -176,7 +176,7 @@ public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor) * * @param int $apiVersion The required API version * - * @return ValidatorBuilderInterface The builder object + * @return $this * * @see Validation::API_VERSION_2_5 * @see Validation::API_VERSION_2_5_BC diff --git a/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php b/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php index fe5eaa3321d1..981c7f97fa96 100644 --- a/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php +++ b/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php @@ -31,7 +31,7 @@ interface ConstraintViolationBuilderInterface * * @param string $path The property path * - * @return ConstraintViolationBuilderInterface This builder + * @return $this */ public function atPath($path); @@ -41,7 +41,7 @@ public function atPath($path); * @param string $key The name of the parameter * @param string $value The value to be inserted in the parameter's place * - * @return ConstraintViolationBuilderInterface This builder + * @return $this */ public function setParameter($key, $value); @@ -52,7 +52,7 @@ public function setParameter($key, $value); * the values to be inserted in their place as * values * - * @return ConstraintViolationBuilderInterface This builder + * @return $this */ public function setParameters(array $parameters); @@ -62,7 +62,7 @@ public function setParameters(array $parameters); * * @param string $translationDomain The translation domain * - * @return ConstraintViolationBuilderInterface This builder + * @return $this * * @see \Symfony\Component\Translation\TranslatorInterface */ @@ -73,7 +73,7 @@ public function setTranslationDomain($translationDomain); * * @param mixed $invalidValue The invalid value * - * @return ConstraintViolationBuilderInterface This builder + * @return $this */ public function setInvalidValue($invalidValue); @@ -83,7 +83,7 @@ public function setInvalidValue($invalidValue); * * @param int $number The number for determining the plural form * - * @return ConstraintViolationBuilderInterface This builder + * @return $this * * @see \Symfony\Component\Translation\TranslatorInterface::transChoice() */ @@ -94,7 +94,7 @@ public function setPlural($number); * * @param int $code The violation code * - * @return ConstraintViolationBuilderInterface This builder + * @return $this */ public function setCode($code); @@ -103,7 +103,7 @@ public function setCode($code); * * @param mixed $cause The cause of the violation * - * @return ConstraintViolationBuilderInterface This builder + * @return $this */ public function setCause($cause);