private function processFunction($reflection)
{
$annotations = $reflection->getAnnotations();
foreach (['param', 'return', 'throws'] as $annotation) {
$this->loadAnnotationFromReflection($reflection, $annotations, $annotation);
}
foreach ($reflection->getParameters() as $parameter) {
if ($hint = $parameter->getClassName()) {
$this->addClass($hint);
}
}
}