protected function addFuncGetArgs(array $nodes, array $params, Param $vParam)
    {
        $newNodes = [];
        $newNodes[] = new Expr\Assign(
            new Expr\Variable($vParam->name),
            new Expr\FuncCall(new Name('func_get_args'))
        );
        foreach ($params as $param) {
            $newNodes[] = new Expr\Assign(
                new Expr\Variable($param->name),
                new Expr\FuncCall(
                    new Name('array_shift'),
                    [new Expr\Variable($vParam->name)]
                )
            );
        }
        return array_merge($newNodes, $nodes);
    }