From d9c0928243e6a8f087abfb8f92f720c3fe1b571b Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sun, 26 May 2013 21:16:30 +0200 Subject: [PATCH] Set return type --- .../Reflection/DocBlock/Tag/ReturnTag.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php b/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php index 44ca300..46ddde2 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php +++ b/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php @@ -60,6 +60,18 @@ class ReturnTag extends Tag return $this; } + /** + * Set the return type + * + * @param string $type + * @return $this + */ + public function setType($type){ + $this->type = $type; + $this->content = null; + return $this; + } + /** * Returns the unique types of the variable. *