Example #1
0
 /**
  * Get method return type
  *
  * @param  Method\Definition $method
  * @return string|array
  */
 protected function _getReturnType(Method\Definition $method)
 {
     $return = array();
     foreach ($method->getPrototypes() as $prototype) {
         $return[] = $prototype->getReturnType();
     }
     if (1 == count($return)) {
         return $return[0];
     }
     return $return;
 }