Skip to content

Commit d9c0928

Browse files
committed
Set return type
1 parent 63c9de4 commit d9c0928

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ public function setContent($content)
6060
return $this;
6161
}
6262

63+
/**
64+
* Set the return type
65+
*
66+
* @param string $type
67+
* @return $this
68+
*/
69+
public function setType($type){
70+
$this->type = $type;
71+
$this->content = null;
72+
return $this;
73+
}
74+
6375
/**
6476
* Returns the unique types of the variable.
6577
*

0 commit comments

Comments
 (0)