public function getReturnType() { if ($this->getDocblock()->hasTag('return')) { $return = $this->getDocblock()->getTag('return'); /* @var $return \Zend\Reflection\Docblock\Tag\ReturnTag */ $type = $return->getType(); ReflectionHelper::processReturnCollection($this, $type); } else { $type = $this->detectReturn(); } return $type; }