protected function parseFunction(FunctionLike $node, FunctionModelInterface $function): void
    {
        foreach ($node->getParams() as $param) {
            $this->parameterNodeParser->invoke($param, $function);
        }

        $return = new ReturnModel();
        $return->setParentNode($function);
        if ($node->getReturnType() !== null) {
            $this->typeNodeParser->invoke($node->getReturnType(), $return);
        }
        $function->setReturn($return);
    }
protected function parseFunction(FunctionLike $node, FunctionModelInterface $function): void
    {
        foreach ($node->getParams() as $param) {
            $this->parameterNodeParser->invoke($param, $function);
        }

        $return = new ReturnModel();
        $return->setParentNode($function);
        if ($node->getReturnType() !== null) {
            $this->typeNodeParser->invoke($node->getReturnType(), $return);
        }
        $function->setReturn($return);
    }
protected function parseFunction ( FunctionLike $ node , FunctionModelInterface $ function ) : void { foreach ( $ node -> getParams ( ) as $ param ) { $ this -> parameterNodeParser -> invoke ( $ param , $ function ) ; } $ return = new ReturnModel ( ) ; $ return -> setParentNode ( $ function ) ; if ( $ node -> getReturnType ( ) !== null ) { $ this -> typeNodeParser -> invoke ( $ node -> getReturnType ( ) , $ return ) ; } $ function -> setReturn ( $ return ) ; }
Parse a function like node to update a function model.

@param FunctionLike           $node     The node to parse.
@param FunctionModelInterface $function The model to update.
Parse a function like node to update a function model .