PHP 클래스 Joli\Jane\OpenApi\JaneOpenApi

파일 보기 프로젝트 열기: jolicode/jane-openapi 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( SchemaParser $schemaParser, ChainGuesser $chainGuesser, Joli\Jane\Generator\ModelGenerator $modelGenerator, NormalizerGenerator $normalizerGenerator, ClientGenerator $clientGenerator, PrettyPrinterAbstract $prettyPrinter, PhpCsFixer\ConfigInterface $fixerConfig = null ) JaneOpenApi constructor.
build ( array $options = [] )
createContext ( string $openApiSpec, string $name, string $namespace, string $directory ) : Joli\Jane\Generator\Context\Context Return a list of class guessed
generate ( string $openApiSpec, string $namespace, string $directory ) : File[] Generate a list of files
printFiles ( File[] $files, string $directory ) Print files

보호된 메소드들

메소드 설명
fix ( string $directory ) : array | void Use php cs fixer to have a nice formatting of generated files

메소드 상세

__construct() 공개 메소드

JaneOpenApi constructor.
public __construct ( SchemaParser $schemaParser, ChainGuesser $chainGuesser, Joli\Jane\Generator\ModelGenerator $modelGenerator, NormalizerGenerator $normalizerGenerator, ClientGenerator $clientGenerator, PrettyPrinterAbstract $prettyPrinter, PhpCsFixer\ConfigInterface $fixerConfig = null )
$schemaParser Joli\Jane\OpenApi\SchemaParser\SchemaParser
$chainGuesser Joli\Jane\Guesser\ChainGuesser
$modelGenerator Joli\Jane\Generator\ModelGenerator
$normalizerGenerator Joli\Jane\Generator\NormalizerGenerator
$clientGenerator Joli\Jane\OpenApi\Generator\ClientGenerator
$prettyPrinter PhpParser\PrettyPrinterAbstract
$fixerConfig PhpCsFixer\ConfigInterface

build() 공개 정적인 메소드

public static build ( array $options = [] )
$options array

createContext() 공개 메소드

Return a list of class guessed
public createContext ( string $openApiSpec, string $name, string $namespace, string $directory ) : Joli\Jane\Generator\Context\Context
$openApiSpec string
$name string
$namespace string
$directory string
리턴 Joli\Jane\Generator\Context\Context

fix() 보호된 메소드

Use php cs fixer to have a nice formatting of generated files
protected fix ( string $directory ) : array | void
$directory string
리턴 array | void

generate() 공개 메소드

Generate a list of files
public generate ( string $openApiSpec, string $namespace, string $directory ) : File[]
$openApiSpec string Location of the specification
$namespace string Namespace of the library
$directory string Path for the root directory of the generated files
리턴 Joli\Jane\Generator\File[]

printFiles() 공개 메소드

Print files
public printFiles ( File[] $files, string $directory )
$files Joli\Jane\Generator\File[]
$directory string