public function functype($class_name, $name)
{
if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
$type = $this->typeByReturnType($class_name, $name);
if ($type) {
return [$type];
}
}
list($path, $doc) = $this->doc($class_name, $name);
return $this->typeByDoc($path, $doc, $class_name);
}