PHP Class Joli\Jane\Jane

Exibir arquivo Open project: jolicode/jane Class Usage Examples

Public Methods

Method Description
__construct ( Serializer $serializer, ChainGuesser $chainGuesser, Joli\Jane\Generator\ModelGenerator $modelGenerator, NormalizerGenerator $normalizerGenerator, PhpCsFixer\ConfigInterface $fixerConfig = null )
build ( $options = [] )
buildSerializer ( )
createContext ( $schemaFilePath, $name, $namespace, $directory ) : Joli\Jane\Generator\Context\Context Return a list of class guessed.
generate ( $schemaFilePath, $name, $namespace, $directory ) : array Generate code.

Protected Methods

Method Description
fix ( $directory ) : array | void Fix files generated in a directory.

Method Details

__construct() public method

public __construct ( Serializer $serializer, ChainGuesser $chainGuesser, Joli\Jane\Generator\ModelGenerator $modelGenerator, NormalizerGenerator $normalizerGenerator, PhpCsFixer\ConfigInterface $fixerConfig = null )
$serializer Symfony\Component\Serializer\Serializer
$chainGuesser Joli\Jane\Guesser\ChainGuesser
$modelGenerator Joli\Jane\Generator\ModelGenerator
$normalizerGenerator Joli\Jane\Generator\NormalizerGenerator
$fixerConfig PhpCsFixer\ConfigInterface

build() public static method

public static build ( $options = [] )

buildSerializer() public static method

public static buildSerializer ( )

createContext() public method

Return a list of class guessed.
public createContext ( $schemaFilePath, $name, $namespace, $directory ) : Joli\Jane\Generator\Context\Context
$schemaFilePath
$name
$namespace
$directory
return Joli\Jane\Generator\Context\Context

fix() protected method

Fix files generated in a directory.
protected fix ( $directory ) : array | void
$directory
return array | void

generate() public method

Generate code.
public generate ( $schemaFilePath, $name, $namespace, $directory ) : array
$schemaFilePath
$name
$namespace
$directory
return array