public function getReturnTypes() {
    $types = ['void'];
    $doc_comment = $this->getDocComment();
    if (!$doc_comment) {
      return $types;
    }
    $return_tag = $doc_comment->getReturn();
    if (!$return_tag) {
      return $types;
    }
    $types = Types::normalize($return_tag->getTypes());
    if (empty($types)) {
      $types[] = 'void';
    }
    return $types;
  }
public function getReturnTypes() {
    $types = ['void'];
    $doc_comment = $this->getDocComment();
    if (!$doc_comment) {
      return $types;
    }
    $return_tag = $doc_comment->getReturn();
    if (!$return_tag) {
      return $types;
    }
    $types = Types::normalize($return_tag->getTypes());
    if (empty($types)) {
      $types[] = 'void';
    }
    return $types;
  }
public function getReturnTypes ( ) { $ types = [ 'void' ] ; $ doc_comment = $ this -> getDocComment ( ) ; if ( ! $ doc_comment ) { return $ types ; } $ return_tag = $ doc_comment -> getReturn ( ) ; if ( ! $ return_tag ) { return $ types ; } $ types = Types :: normalize ( $ return_tag -> getTypes ( ) ) ; if ( empty ( $ types ) ) { $ types [ ] = 'void' ; } return $ types ; }
Get the return type of the function as defined by the doc comment.

@return string[]
The types as defined by phpdoc standard. Default is ['void'].
Get the return type of the function as defined by the doc comment .