private function typeByDoc($path, $doc, $class_name) { $has_doc = preg_match('/@(return|var)\\s+(\\S+)/m', $doc, $matches); if ($has_doc) { return $this->fixRelativeType($path, explode('|', $matches[2])); } return []; }