Skip to content

Commit 08e75c9

Browse files
committed
fixed @return when returning this or static
1 parent 234628b commit 08e75c9

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

Compiler/ServiceReferenceGraph.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function hasNode($id)
4545
*
4646
* @param string $id The id to retrieve
4747
*
48-
* @return ServiceReferenceGraphNode The node matching the supplied identifier
48+
* @return ServiceReferenceGraphNode
4949
*
5050
* @throws InvalidArgumentException if no node matches the supplied identifier
5151
*/
@@ -61,7 +61,7 @@ public function getNode($id)
6161
/**
6262
* Returns all nodes.
6363
*
64-
* @return ServiceReferenceGraphNode[] An array of all ServiceReferenceGraphNode objects
64+
* @return ServiceReferenceGraphNode[]
6565
*/
6666
public function getNodes()
6767
{

ContainerBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function getResources()
196196
*
197197
* @param ResourceInterface $resource A resource instance
198198
*
199-
* @return ContainerBuilder The current instance
199+
* @return $this
200200
*/
201201
public function addResource(ResourceInterface $resource)
202202
{
@@ -214,7 +214,7 @@ public function addResource(ResourceInterface $resource)
214214
*
215215
* @param ResourceInterface[] $resources An array of resources
216216
*
217-
* @return ContainerBuilder The current instance
217+
* @return $this
218218
*/
219219
public function setResources(array $resources)
220220
{
@@ -232,7 +232,7 @@ public function setResources(array $resources)
232232
*
233233
* @param object $object An object instance
234234
*
235-
* @return ContainerBuilder The current instance
235+
* @return $this
236236
*/
237237
public function addObjectResource($object)
238238
{
@@ -248,7 +248,7 @@ public function addObjectResource($object)
248248
*
249249
* @param \ReflectionClass $class
250250
*
251-
* @return ContainerBuilder The current instance
251+
* @return $this
252252
*/
253253
public function addClassResource(\ReflectionClass $class)
254254
{
@@ -271,7 +271,7 @@ public function addClassResource(\ReflectionClass $class)
271271
* @param string $extension The extension alias or namespace
272272
* @param array $values An array of values that customizes the extension
273273
*
274-
* @return ContainerBuilder The current instance
274+
* @return $this
275275
*
276276
* @throws BadMethodCallException When this ContainerBuilder is frozen
277277
* @throws \LogicException if the container is frozen
@@ -295,7 +295,7 @@ public function loadFromExtension($extension, array $values = array())
295295
* @param CompilerPassInterface $pass A compiler pass
296296
* @param string $type The type of compiler pass
297297
*
298-
* @return ContainerBuilder The current instance
298+
* @return $this
299299
*/
300300
public function addCompilerPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)
301301
{

Definition.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct($class = null, array $arguments = array())
5656
*
5757
* @param string|array $factory A PHP function or an array containing a class/Reference and a method to call
5858
*
59-
* @return Definition The current instance
59+
* @return $this
6060
*/
6161
public function setFactory($factory)
6262
{
@@ -85,7 +85,7 @@ public function getFactory()
8585
*
8686
* @param string $factoryClass The factory class name
8787
*
88-
* @return Definition The current instance
88+
* @return $this
8989
*
9090
* @deprecated since version 2.6, to be removed in 3.0.
9191
*/
@@ -119,7 +119,7 @@ public function getFactoryClass($triggerDeprecationError = true)
119119
*
120120
* @param string $factoryMethod The factory method name
121121
*
122-
* @return Definition The current instance
122+
* @return $this
123123
*
124124
* @deprecated since version 2.6, to be removed in 3.0.
125125
*/
@@ -138,7 +138,7 @@ public function setFactoryMethod($factoryMethod)
138138
* @param null|string $id The decorated service id, use null to remove decoration
139139
* @param null|string $renamedId The new decorated service id
140140
*
141-
* @return Definition The current instance
141+
* @return $this
142142
*
143143
* @throws InvalidArgumentException In case the decorated service id and the new decorated service id are equals.
144144
*/
@@ -188,7 +188,7 @@ public function getFactoryMethod($triggerDeprecationError = true)
188188
*
189189
* @param string $factoryService The factory service id
190190
*
191-
* @return Definition The current instance
191+
* @return $this
192192
*
193193
* @deprecated since version 2.6, to be removed in 3.0.
194194
*/
@@ -224,7 +224,7 @@ public function getFactoryService($triggerDeprecationError = true)
224224
*
225225
* @param string $class The service class
226226
*
227-
* @return Definition The current instance
227+
* @return $this
228228
*/
229229
public function setClass($class)
230230
{
@@ -248,7 +248,7 @@ public function getClass()
248248
*
249249
* @param array $arguments An array of arguments
250250
*
251-
* @return Definition The current instance
251+
* @return $this
252252
*/
253253
public function setArguments(array $arguments)
254254
{
@@ -281,7 +281,7 @@ public function setProperty($name, $value)
281281
*
282282
* @param mixed $argument An argument
283283
*
284-
* @return Definition The current instance
284+
* @return $this
285285
*/
286286
public function addArgument($argument)
287287
{
@@ -296,7 +296,7 @@ public function addArgument($argument)
296296
* @param int $index
297297
* @param mixed $argument
298298
*
299-
* @return Definition The current instance
299+
* @return $this
300300
*
301301
* @throws OutOfBoundsException When the replaced argument does not exist
302302
*/
@@ -344,7 +344,7 @@ public function getArgument($index)
344344
*
345345
* @param array $calls An array of method calls
346346
*
347-
* @return Definition The current instance
347+
* @return $this
348348
*/
349349
public function setMethodCalls(array $calls = array())
350350
{
@@ -362,7 +362,7 @@ public function setMethodCalls(array $calls = array())
362362
* @param string $method The method name to call
363363
* @param array $arguments An array of arguments to pass to the method call
364364
*
365-
* @return Definition The current instance
365+
* @return $this
366366
*
367367
* @throws InvalidArgumentException on empty $method param
368368
*/
@@ -381,7 +381,7 @@ public function addMethodCall($method, array $arguments = array())
381381
*
382382
* @param string $method The method name to remove
383383
*
384-
* @return Definition The current instance
384+
* @return $this
385385
*/
386386
public function removeMethodCall($method)
387387
{
@@ -428,7 +428,7 @@ public function getMethodCalls()
428428
*
429429
* @param array $tags
430430
*
431-
* @return Definition the current instance
431+
* @return $this
432432
*/
433433
public function setTags(array $tags)
434434
{
@@ -465,7 +465,7 @@ public function getTag($name)
465465
* @param string $name The tag name
466466
* @param array $attributes An array of attributes
467467
*
468-
* @return Definition The current instance
468+
* @return $this
469469
*/
470470
public function addTag($name, array $attributes = array())
471471
{
@@ -491,7 +491,7 @@ public function hasTag($name)
491491
*
492492
* @param string $name The tag name
493493
*
494-
* @return Definition
494+
* @return $this
495495
*/
496496
public function clearTag($name)
497497
{
@@ -503,7 +503,7 @@ public function clearTag($name)
503503
/**
504504
* Clears the tags for this definition.
505505
*
506-
* @return Definition The current instance
506+
* @return $this
507507
*/
508508
public function clearTags()
509509
{
@@ -517,7 +517,7 @@ public function clearTags()
517517
*
518518
* @param string $file A full pathname to include
519519
*
520-
* @return Definition The current instance
520+
* @return $this
521521
*/
522522
public function setFile($file)
523523
{
@@ -541,7 +541,7 @@ public function getFile()
541541
*
542542
* @param string $scope Whether the service must be shared or not
543543
*
544-
* @return Definition The current instance
544+
* @return $this
545545
*/
546546
public function setScope($scope)
547547
{
@@ -565,7 +565,7 @@ public function getScope()
565565
*
566566
* @param bool $boolean
567567
*
568-
* @return Definition The current instance
568+
* @return $this
569569
*/
570570
public function setPublic($boolean)
571571
{
@@ -589,7 +589,7 @@ public function isPublic()
589589
*
590590
* @param bool $boolean
591591
*
592-
* @return Definition The current instance
592+
* @return $this
593593
*
594594
* @deprecated since version 2.7, will be removed in 3.0.
595595
*/
@@ -625,7 +625,7 @@ public function isSynchronized($triggerDeprecationError = true)
625625
*
626626
* @param bool $lazy
627627
*
628-
* @return Definition The current instance
628+
* @return $this
629629
*/
630630
public function setLazy($lazy)
631631
{
@@ -650,7 +650,7 @@ public function isLazy()
650650
*
651651
* @param bool $boolean
652652
*
653-
* @return Definition the current instance
653+
* @return $this
654654
*/
655655
public function setSynthetic($boolean)
656656
{
@@ -676,7 +676,7 @@ public function isSynthetic()
676676
*
677677
* @param bool $boolean
678678
*
679-
* @return Definition the current instance
679+
* @return $this
680680
*/
681681
public function setAbstract($boolean)
682682
{
@@ -701,7 +701,7 @@ public function isAbstract()
701701
*
702702
* @param callable $callable A PHP callable
703703
*
704-
* @return Definition The current instance
704+
* @return $this
705705
*/
706706
public function setConfigurator($callable)
707707
{

DefinitionDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function getArgument($index)
192192
* @param int $index
193193
* @param mixed $value
194194
*
195-
* @return DefinitionDecorator the current instance
195+
* @return $this
196196
*
197197
* @throws InvalidArgumentException when $index isn't an integer
198198
*/

0 commit comments

Comments
 (0)