From 824afa2c40d547ca800b803d4b674970ebd4c8fc Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 28 May 2013 13:31:00 +0200 Subject: [PATCH] Revert setTypes, getContent and getRawType So it is just the original, but with setType added. --- .../Reflection/DocBlock/Tag/ReturnTag.php | 30 ++----------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php b/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php index 452e9c7..d832eb6 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php +++ b/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php @@ -36,7 +36,7 @@ class ReturnTag extends Tag public function getContent() { if (null === $this->content) { - $this->content = "{$this->getType()} {$this->description}"; + $this->content = "{$this->type} {$this->description}"; } return $this->content; @@ -71,22 +71,6 @@ class ReturnTag extends Tag return $this->getTypesCollection()->getArrayCopy(); } - /** - * Sets the types of the variable - * - * @param $types - * @return $this - */ - public function setTypes($types){ - $this->types = new Collection( - $types, - $this->docblock ? $this->docblock->getContext() : null - ); - $this->content = null; - $this->type = null; - return $this; - } - /** * Returns the parsed type section of the variable. * @@ -97,20 +81,10 @@ class ReturnTag extends Tag return (string) $this->getTypesCollection(); } - /** - * Returns the raw type section of the variable. - * - * @return string - */ - public function getRawType() - { - return $this->type ?: $this->getType(); - } - /** * Set the type section of the variable * - * @param $type + * @param string $type * @return $this */ public function setType($type)