@@ -61,7 +61,7 @@ public function __construct($class = null, array $arguments = array())
61
61
*
62
62
* @param string|array $factory A PHP function or an array containing a class/Reference and a method to call
63
63
*
64
- * @return Definition The current instance
64
+ * @return $this
65
65
*/
66
66
public function setFactory ($ factory )
67
67
{
@@ -90,7 +90,7 @@ public function getFactory()
90
90
*
91
91
* @param string $factoryClass The factory class name
92
92
*
93
- * @return Definition The current instance
93
+ * @return $this
94
94
*
95
95
* @deprecated since version 2.6, to be removed in 3.0.
96
96
*/
@@ -124,7 +124,7 @@ public function getFactoryClass($triggerDeprecationError = true)
124
124
*
125
125
* @param string $factoryMethod The factory method name
126
126
*
127
- * @return Definition The current instance
127
+ * @return $this
128
128
*
129
129
* @deprecated since version 2.6, to be removed in 3.0.
130
130
*/
@@ -144,7 +144,7 @@ public function setFactoryMethod($factoryMethod)
144
144
* @param null|string $renamedId The new decorated service id
145
145
* @param int $priority The priority of decoration
146
146
*
147
- * @return Definition The current instance
147
+ * @return $this
148
148
*
149
149
* @throws InvalidArgumentException In case the decorated service id and the new decorated service id are equals.
150
150
*/
@@ -194,7 +194,7 @@ public function getFactoryMethod($triggerDeprecationError = true)
194
194
*
195
195
* @param string $factoryService The factory service id
196
196
*
197
- * @return Definition The current instance
197
+ * @return $this
198
198
*
199
199
* @deprecated since version 2.6, to be removed in 3.0.
200
200
*/
@@ -230,7 +230,7 @@ public function getFactoryService($triggerDeprecationError = true)
230
230
*
231
231
* @param string $class The service class
232
232
*
233
- * @return Definition The current instance
233
+ * @return $this
234
234
*/
235
235
public function setClass ($ class )
236
236
{
@@ -254,7 +254,7 @@ public function getClass()
254
254
*
255
255
* @param array $arguments An array of arguments
256
256
*
257
- * @return Definition The current instance
257
+ * @return $this
258
258
*/
259
259
public function setArguments (array $ arguments )
260
260
{
@@ -287,7 +287,7 @@ public function setProperty($name, $value)
287
287
*
288
288
* @param mixed $argument An argument
289
289
*
290
- * @return Definition The current instance
290
+ * @return $this
291
291
*/
292
292
public function addArgument ($ argument )
293
293
{
@@ -302,7 +302,7 @@ public function addArgument($argument)
302
302
* @param int $index
303
303
* @param mixed $argument
304
304
*
305
- * @return Definition The current instance
305
+ * @return $this
306
306
*
307
307
* @throws OutOfBoundsException When the replaced argument does not exist
308
308
*/
@@ -350,7 +350,7 @@ public function getArgument($index)
350
350
*
351
351
* @param array $calls An array of method calls
352
352
*
353
- * @return Definition The current instance
353
+ * @return $this
354
354
*/
355
355
public function setMethodCalls (array $ calls = array ())
356
356
{
@@ -368,7 +368,7 @@ public function setMethodCalls(array $calls = array())
368
368
* @param string $method The method name to call
369
369
* @param array $arguments An array of arguments to pass to the method call
370
370
*
371
- * @return Definition The current instance
371
+ * @return $this
372
372
*
373
373
* @throws InvalidArgumentException on empty $method param
374
374
*/
@@ -387,7 +387,7 @@ public function addMethodCall($method, array $arguments = array())
387
387
*
388
388
* @param string $method The method name to remove
389
389
*
390
- * @return Definition The current instance
390
+ * @return $this
391
391
*/
392
392
public function removeMethodCall ($ method )
393
393
{
@@ -434,7 +434,7 @@ public function getMethodCalls()
434
434
*
435
435
* @param array $tags
436
436
*
437
- * @return Definition the current instance
437
+ * @return $this
438
438
*/
439
439
public function setTags (array $ tags )
440
440
{
@@ -471,7 +471,7 @@ public function getTag($name)
471
471
* @param string $name The tag name
472
472
* @param array $attributes An array of attributes
473
473
*
474
- * @return Definition The current instance
474
+ * @return $this
475
475
*/
476
476
public function addTag ($ name , array $ attributes = array ())
477
477
{
@@ -497,7 +497,7 @@ public function hasTag($name)
497
497
*
498
498
* @param string $name The tag name
499
499
*
500
- * @return Definition
500
+ * @return $this
501
501
*/
502
502
public function clearTag ($ name )
503
503
{
@@ -509,7 +509,7 @@ public function clearTag($name)
509
509
/**
510
510
* Clears the tags for this definition.
511
511
*
512
- * @return Definition The current instance
512
+ * @return $this
513
513
*/
514
514
public function clearTags ()
515
515
{
@@ -523,7 +523,7 @@ public function clearTags()
523
523
*
524
524
* @param string $file A full pathname to include
525
525
*
526
- * @return Definition The current instance
526
+ * @return $this
527
527
*/
528
528
public function setFile ($ file )
529
529
{
@@ -571,7 +571,7 @@ public function isShared()
571
571
*
572
572
* @param string $scope Whether the service must be shared or not
573
573
*
574
- * @return Definition The current instance
574
+ * @return $this
575
575
*
576
576
* @deprecated since version 2.8, to be removed in 3.0.
577
577
*/
@@ -611,7 +611,7 @@ public function getScope($triggerDeprecationError = true)
611
611
*
612
612
* @param bool $boolean
613
613
*
614
- * @return Definition The current instance
614
+ * @return $this
615
615
*/
616
616
public function setPublic ($ boolean )
617
617
{
@@ -635,7 +635,7 @@ public function isPublic()
635
635
*
636
636
* @param bool $boolean
637
637
*
638
- * @return Definition The current instance
638
+ * @return $this
639
639
*
640
640
* @deprecated since version 2.7, will be removed in 3.0.
641
641
*/
@@ -671,7 +671,7 @@ public function isSynchronized($triggerDeprecationError = true)
671
671
*
672
672
* @param bool $lazy
673
673
*
674
- * @return Definition The current instance
674
+ * @return $this
675
675
*/
676
676
public function setLazy ($ lazy )
677
677
{
@@ -696,7 +696,7 @@ public function isLazy()
696
696
*
697
697
* @param bool $boolean
698
698
*
699
- * @return Definition the current instance
699
+ * @return $this
700
700
*/
701
701
public function setSynthetic ($ boolean )
702
702
{
@@ -722,7 +722,7 @@ public function isSynthetic()
722
722
*
723
723
* @param bool $boolean
724
724
*
725
- * @return Definition the current instance
725
+ * @return $this
726
726
*/
727
727
public function setAbstract ($ boolean )
728
728
{
@@ -800,7 +800,7 @@ public function getDeprecationMessage($id)
800
800
*
801
801
* @param callable $callable A PHP callable
802
802
*
803
- * @return Definition The current instance
803
+ * @return $this
804
804
*/
805
805
public function setConfigurator ($ callable )
806
806
{
0 commit comments