@@ -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 {
0 commit comments