Example #1
0
 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;
 }