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. *