PHP Class Joli\Jane\OpenApi\Generator\ClientGenerator

显示文件 Open project: jolicode/jane-openapi Class Usage Examples

Public Methods

Method Description
__construct ( Joli\Jane\OpenApi\Operation\OperationManager $operationManager, OperationGenerator $operationGenerator, Joli\Jane\OpenApi\Naming\OperationNamingInterface $operationNaming )
generate ( Joli\Jane\OpenApi\Model\OpenApi $openApi, string $namespace, Joli\Jane\Generator\Context\Context $context, string $suffix = 'Resource' ) : PhpParser\Node[] Generate an ast node (which correspond to a class) for a OpenApi spec

Protected Methods

Method Description
generateClass ( $group, $operations, $namespace, Joli\Jane\Generator\Context\Context $context, $suffix = 'Resource' )

Method Details

__construct() public method

public __construct ( Joli\Jane\OpenApi\Operation\OperationManager $operationManager, OperationGenerator $operationGenerator, Joli\Jane\OpenApi\Naming\OperationNamingInterface $operationNaming )
$operationManager Joli\Jane\OpenApi\Operation\OperationManager
$operationGenerator OperationGenerator
$operationNaming Joli\Jane\OpenApi\Naming\OperationNamingInterface

generate() public method

Generate an ast node (which correspond to a class) for a OpenApi spec
public generate ( Joli\Jane\OpenApi\Model\OpenApi $openApi, string $namespace, Joli\Jane\Generator\Context\Context $context, string $suffix = 'Resource' ) : PhpParser\Node[]
$openApi Joli\Jane\OpenApi\Model\OpenApi
$namespace string
$context Joli\Jane\Generator\Context\Context
$suffix string
return PhpParser\Node[]

generateClass() protected method

protected generateClass ( $group, $operations, $namespace, Joli\Jane\Generator\Context\Context $context, $suffix = 'Resource' )
$context Joli\Jane\Generator\Context\Context