src/Generator/ClientGenerator.php
public function generate(OpenApi $openApi, $namespace, Context $context, $reference, $suffix = 'Resource')
    {
        $operationsGrouped = $this->operationManager->buildOperationCollection($openApi, $reference);
        $nodes             = [];

        foreach ($operationsGrouped as $group => $operations) {
            $nodes[] = $this->generateClass($group, $operations, $namespace, $context, $suffix);
        }

        return $nodes;
    }
public function generate(OpenApi $openApi, $namespace, Context $context, $reference, $suffix = 'Resource')
    {
        $operationsGrouped = $this->operationManager->buildOperationCollection($openApi, $reference);
        $nodes             = [];

        foreach ($operationsGrouped as $group => $operations) {
            $nodes[] = $this->generateClass($group, $operations, $namespace, $context, $suffix);
        }

        return $nodes;
    }
public function generate ( OpenApi $ openApi , $ namespace , Context $ context , $ reference , $ suffix = 'Resource' ) { $ operationsGrouped = $ this -> operationManager -> buildOperationCollection ( $ openApi , $ reference ) ; $ nodes = [ ] ; foreach ( $ operationsGrouped as $ group => $ operations ) { $ nodes [ ] = $ this -> generateClass ( $ group , $ operations , $ namespace , $ context , $ suffix ) ; } return $ nodes ; }
Generate an ast node (which correspond to a class) for a OpenApi spec

@param OpenApi $openApi
@param string  $namespace
@param Context $context
@param string  $reference
@param string  $suffix

@return Node[]
Generate an ast node ( which correspond to a class ) for a OpenApi spec