ApiGen\Parser\Broker\Backend::processFunction PHP Method

processFunction() private method

Processes a function/method and adds classes from annotations to the overall class array.
private processFunction ( ReflectionMethod | ApiGen\Parser\Reflection\ReflectionFunction $reflection )
$reflection ApiGen\Parser\Reflection\ReflectionMethod | ApiGen\Parser\Reflection\ReflectionFunction
    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);
            }
        }
    }