@@ -56,7 +56,7 @@ public function __construct($class = null, array $arguments = array())
56
56
*
57
57
* @param string|array $factory A PHP function or an array containing a class/Reference and a method to call
58
58
*
59
- * @return Definition The current instance
59
+ * @return $this
60
60
*/
61
61
public function setFactory ($ factory )
62
62
{
@@ -85,7 +85,7 @@ public function getFactory()
85
85
*
86
86
* @param string $factoryClass The factory class name
87
87
*
88
- * @return Definition The current instance
88
+ * @return $this
89
89
*
90
90
* @deprecated since version 2.6, to be removed in 3.0.
91
91
*/
@@ -119,7 +119,7 @@ public function getFactoryClass($triggerDeprecationError = true)
119
119
*
120
120
* @param string $factoryMethod The factory method name
121
121
*
122
- * @return Definition The current instance
122
+ * @return $this
123
123
*
124
124
* @deprecated since version 2.6, to be removed in 3.0.
125
125
*/
@@ -138,7 +138,7 @@ public function setFactoryMethod($factoryMethod)
138
138
* @param null|string $id The decorated service id, use null to remove decoration
139
139
* @param null|string $renamedId The new decorated service id
140
140
*
141
- * @return Definition The current instance
141
+ * @return $this
142
142
*
143
143
* @throws InvalidArgumentException In case the decorated service id and the new decorated service id are equals.
144
144
*/
@@ -188,7 +188,7 @@ public function getFactoryMethod($triggerDeprecationError = true)
188
188
*
189
189
* @param string $factoryService The factory service id
190
190
*
191
- * @return Definition The current instance
191
+ * @return $this
192
192
*
193
193
* @deprecated since version 2.6, to be removed in 3.0.
194
194
*/
@@ -224,7 +224,7 @@ public function getFactoryService($triggerDeprecationError = true)
224
224
*
225
225
* @param string $class The service class
226
226
*
227
- * @return Definition The current instance
227
+ * @return $this
228
228
*/
229
229
public function setClass ($ class )
230
230
{
@@ -248,7 +248,7 @@ public function getClass()
248
248
*
249
249
* @param array $arguments An array of arguments
250
250
*
251
- * @return Definition The current instance
251
+ * @return $this
252
252
*/
253
253
public function setArguments (array $ arguments )
254
254
{
@@ -281,7 +281,7 @@ public function setProperty($name, $value)
281
281
*
282
282
* @param mixed $argument An argument
283
283
*
284
- * @return Definition The current instance
284
+ * @return $this
285
285
*/
286
286
public function addArgument ($ argument )
287
287
{
@@ -296,7 +296,7 @@ public function addArgument($argument)
296
296
* @param int $index
297
297
* @param mixed $argument
298
298
*
299
- * @return Definition The current instance
299
+ * @return $this
300
300
*
301
301
* @throws OutOfBoundsException When the replaced argument does not exist
302
302
*/
@@ -344,7 +344,7 @@ public function getArgument($index)
344
344
*
345
345
* @param array $calls An array of method calls
346
346
*
347
- * @return Definition The current instance
347
+ * @return $this
348
348
*/
349
349
public function setMethodCalls (array $ calls = array ())
350
350
{
@@ -362,7 +362,7 @@ public function setMethodCalls(array $calls = array())
362
362
* @param string $method The method name to call
363
363
* @param array $arguments An array of arguments to pass to the method call
364
364
*
365
- * @return Definition The current instance
365
+ * @return $this
366
366
*
367
367
* @throws InvalidArgumentException on empty $method param
368
368
*/
@@ -381,7 +381,7 @@ public function addMethodCall($method, array $arguments = array())
381
381
*
382
382
* @param string $method The method name to remove
383
383
*
384
- * @return Definition The current instance
384
+ * @return $this
385
385
*/
386
386
public function removeMethodCall ($ method )
387
387
{
@@ -428,7 +428,7 @@ public function getMethodCalls()
428
428
*
429
429
* @param array $tags
430
430
*
431
- * @return Definition the current instance
431
+ * @return $this
432
432
*/
433
433
public function setTags (array $ tags )
434
434
{
@@ -465,7 +465,7 @@ public function getTag($name)
465
465
* @param string $name The tag name
466
466
* @param array $attributes An array of attributes
467
467
*
468
- * @return Definition The current instance
468
+ * @return $this
469
469
*/
470
470
public function addTag ($ name , array $ attributes = array ())
471
471
{
@@ -491,7 +491,7 @@ public function hasTag($name)
491
491
*
492
492
* @param string $name The tag name
493
493
*
494
- * @return Definition
494
+ * @return $this
495
495
*/
496
496
public function clearTag ($ name )
497
497
{
@@ -503,7 +503,7 @@ public function clearTag($name)
503
503
/**
504
504
* Clears the tags for this definition.
505
505
*
506
- * @return Definition The current instance
506
+ * @return $this
507
507
*/
508
508
public function clearTags ()
509
509
{
@@ -517,7 +517,7 @@ public function clearTags()
517
517
*
518
518
* @param string $file A full pathname to include
519
519
*
520
- * @return Definition The current instance
520
+ * @return $this
521
521
*/
522
522
public function setFile ($ file )
523
523
{
@@ -541,7 +541,7 @@ public function getFile()
541
541
*
542
542
* @param string $scope Whether the service must be shared or not
543
543
*
544
- * @return Definition The current instance
544
+ * @return $this
545
545
*/
546
546
public function setScope ($ scope )
547
547
{
@@ -565,7 +565,7 @@ public function getScope()
565
565
*
566
566
* @param bool $boolean
567
567
*
568
- * @return Definition The current instance
568
+ * @return $this
569
569
*/
570
570
public function setPublic ($ boolean )
571
571
{
@@ -589,7 +589,7 @@ public function isPublic()
589
589
*
590
590
* @param bool $boolean
591
591
*
592
- * @return Definition The current instance
592
+ * @return $this
593
593
*
594
594
* @deprecated since version 2.7, will be removed in 3.0.
595
595
*/
@@ -625,7 +625,7 @@ public function isSynchronized($triggerDeprecationError = true)
625
625
*
626
626
* @param bool $lazy
627
627
*
628
- * @return Definition The current instance
628
+ * @return $this
629
629
*/
630
630
public function setLazy ($ lazy )
631
631
{
@@ -650,7 +650,7 @@ public function isLazy()
650
650
*
651
651
* @param bool $boolean
652
652
*
653
- * @return Definition the current instance
653
+ * @return $this
654
654
*/
655
655
public function setSynthetic ($ boolean )
656
656
{
@@ -676,7 +676,7 @@ public function isSynthetic()
676
676
*
677
677
* @param bool $boolean
678
678
*
679
- * @return Definition the current instance
679
+ * @return $this
680
680
*/
681
681
public function setAbstract ($ boolean )
682
682
{
@@ -701,7 +701,7 @@ public function isAbstract()
701
701
*
702
702
* @param callable $callable A PHP callable
703
703
*
704
- * @return Definition The current instance
704
+ * @return $this
705
705
*/
706
706
public function setConfigurator ($ callable )
707
707
{
0 commit comments