private function getReturn(Project $project, int $objectType, string $namespace = null, string $object = null, string $function) : array
{
$docBlock = $this->getDocBlock($project, $objectType, $namespace, $object, $function);
if ($docBlock) {
$tags = $docBlock->getTagsByName('return');
if (1 !== count($tags)) {
return [];
}
return $this->getType($tags[0]);
}
return [];
}