mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-17 17:47:13 +00:00
Compare commits
3
Commits
v2.1.1
...
get/set-types
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93f9140080 | ||
|
|
824afa2c40 | ||
|
|
09f91760eb |
@@ -81,10 +81,24 @@ class ReturnTag extends Tag
|
||||
return (string) $this->getTypesCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the type section of the variable
|
||||
*
|
||||
* @param string $type
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->types = null;
|
||||
$this->content = null;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the type collection.
|
||||
*
|
||||
* @return void
|
||||
* @return Collection
|
||||
*/
|
||||
protected function getTypesCollection()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user