@@ -61,7 +61,7 @@ public function __construct($class = null, array $arguments = array())
6161 *
6262 * @param string|array $factory A PHP function or an array containing a class/Reference and a method to call
6363 *
64- * @return Definition The current instance
64+ * @return $this
6565 */
6666 public function setFactory ($ factory )
6767 {
@@ -90,7 +90,7 @@ public function getFactory()
9090 *
9191 * @param string $factoryClass The factory class name
9292 *
93- * @return Definition The current instance
93+ * @return $this
9494 *
9595 * @deprecated since version 2.6, to be removed in 3.0.
9696 */
@@ -124,7 +124,7 @@ public function getFactoryClass($triggerDeprecationError = true)
124124 *
125125 * @param string $factoryMethod The factory method name
126126 *
127- * @return Definition The current instance
127+ * @return $this
128128 *
129129 * @deprecated since version 2.6, to be removed in 3.0.
130130 */
@@ -144,7 +144,7 @@ public function setFactoryMethod($factoryMethod)
144144 * @param null|string $renamedId The new decorated service id
145145 * @param int $priority The priority of decoration
146146 *
147- * @return Definition The current instance
147+ * @return $this
148148 *
149149 * @throws InvalidArgumentException In case the decorated service id and the new decorated service id are equals.
150150 */
@@ -194,7 +194,7 @@ public function getFactoryMethod($triggerDeprecationError = true)
194194 *
195195 * @param string $factoryService The factory service id
196196 *
197- * @return Definition The current instance
197+ * @return $this
198198 *
199199 * @deprecated since version 2.6, to be removed in 3.0.
200200 */
@@ -230,7 +230,7 @@ public function getFactoryService($triggerDeprecationError = true)
230230 *
231231 * @param string $class The service class
232232 *
233- * @return Definition The current instance
233+ * @return $this
234234 */
235235 public function setClass ($ class )
236236 {
@@ -254,7 +254,7 @@ public function getClass()
254254 *
255255 * @param array $arguments An array of arguments
256256 *
257- * @return Definition The current instance
257+ * @return $this
258258 */
259259 public function setArguments (array $ arguments )
260260 {
@@ -287,7 +287,7 @@ public function setProperty($name, $value)
287287 *
288288 * @param mixed $argument An argument
289289 *
290- * @return Definition The current instance
290+ * @return $this
291291 */
292292 public function addArgument ($ argument )
293293 {
@@ -302,7 +302,7 @@ public function addArgument($argument)
302302 * @param int $index
303303 * @param mixed $argument
304304 *
305- * @return Definition The current instance
305+ * @return $this
306306 *
307307 * @throws OutOfBoundsException When the replaced argument does not exist
308308 */
@@ -350,7 +350,7 @@ public function getArgument($index)
350350 *
351351 * @param array $calls An array of method calls
352352 *
353- * @return Definition The current instance
353+ * @return $this
354354 */
355355 public function setMethodCalls (array $ calls = array ())
356356 {
@@ -368,7 +368,7 @@ public function setMethodCalls(array $calls = array())
368368 * @param string $method The method name to call
369369 * @param array $arguments An array of arguments to pass to the method call
370370 *
371- * @return Definition The current instance
371+ * @return $this
372372 *
373373 * @throws InvalidArgumentException on empty $method param
374374 */
@@ -387,7 +387,7 @@ public function addMethodCall($method, array $arguments = array())
387387 *
388388 * @param string $method The method name to remove
389389 *
390- * @return Definition The current instance
390+ * @return $this
391391 */
392392 public function removeMethodCall ($ method )
393393 {
@@ -434,7 +434,7 @@ public function getMethodCalls()
434434 *
435435 * @param array $tags
436436 *
437- * @return Definition the current instance
437+ * @return $this
438438 */
439439 public function setTags (array $ tags )
440440 {
@@ -471,7 +471,7 @@ public function getTag($name)
471471 * @param string $name The tag name
472472 * @param array $attributes An array of attributes
473473 *
474- * @return Definition The current instance
474+ * @return $this
475475 */
476476 public function addTag ($ name , array $ attributes = array ())
477477 {
@@ -497,7 +497,7 @@ public function hasTag($name)
497497 *
498498 * @param string $name The tag name
499499 *
500- * @return Definition
500+ * @return $this
501501 */
502502 public function clearTag ($ name )
503503 {
@@ -509,7 +509,7 @@ public function clearTag($name)
509509 /**
510510 * Clears the tags for this definition.
511511 *
512- * @return Definition The current instance
512+ * @return $this
513513 */
514514 public function clearTags ()
515515 {
@@ -523,7 +523,7 @@ public function clearTags()
523523 *
524524 * @param string $file A full pathname to include
525525 *
526- * @return Definition The current instance
526+ * @return $this
527527 */
528528 public function setFile ($ file )
529529 {
@@ -571,7 +571,7 @@ public function isShared()
571571 *
572572 * @param string $scope Whether the service must be shared or not
573573 *
574- * @return Definition The current instance
574+ * @return $this
575575 *
576576 * @deprecated since version 2.8, to be removed in 3.0.
577577 */
@@ -611,7 +611,7 @@ public function getScope($triggerDeprecationError = true)
611611 *
612612 * @param bool $boolean
613613 *
614- * @return Definition The current instance
614+ * @return $this
615615 */
616616 public function setPublic ($ boolean )
617617 {
@@ -635,7 +635,7 @@ public function isPublic()
635635 *
636636 * @param bool $boolean
637637 *
638- * @return Definition The current instance
638+ * @return $this
639639 *
640640 * @deprecated since version 2.7, will be removed in 3.0.
641641 */
@@ -671,7 +671,7 @@ public function isSynchronized($triggerDeprecationError = true)
671671 *
672672 * @param bool $lazy
673673 *
674- * @return Definition The current instance
674+ * @return $this
675675 */
676676 public function setLazy ($ lazy )
677677 {
@@ -696,7 +696,7 @@ public function isLazy()
696696 *
697697 * @param bool $boolean
698698 *
699- * @return Definition the current instance
699+ * @return $this
700700 */
701701 public function setSynthetic ($ boolean )
702702 {
@@ -722,7 +722,7 @@ public function isSynthetic()
722722 *
723723 * @param bool $boolean
724724 *
725- * @return Definition the current instance
725+ * @return $this
726726 */
727727 public function setAbstract ($ boolean )
728728 {
@@ -800,7 +800,7 @@ public function getDeprecationMessage($id)
800800 *
801801 * @param callable $callable A PHP callable
802802 *
803- * @return Definition The current instance
803+ * @return $this
804804 */
805805 public function setConfigurator ($ callable )
806806 {
0 commit comments