PHP Class Joli\Jane\Generator\NormalizerGenerator

Inheritance: implements Joli\Jane\Generator\GeneratorInterface, use trait Joli\Jane\Generator\Normalizer\DenormalizerGenerator, use trait Joli\Jane\Generator\Normalizer\NormalizerGenerator
Datei anzeigen Open project: jolicode/jane Class Usage Examples

Protected Properties

Property Type Description
$naming The naming service
$useReference Whether to generate the JSON Reference system

Public Methods

Method Description
__construct ( Naming $naming, boolean $useReference = true )
generate ( mixed $schema, string $className, Joli\Jane\Generator\Context\Context $context ) : File[] Generate a set of files given a schema

Protected Methods

Method Description
createNormalizerFactoryClass ( $classes )
getNaming ( ) : Naming The naming service

Method Details

__construct() public method

public __construct ( Naming $naming, boolean $useReference = true )
$naming Naming Naming Service
$useReference boolean Whether to generate the JSON Reference system

createNormalizerFactoryClass() protected method

protected createNormalizerFactoryClass ( $classes )

generate() public method

Generate a set of files given a schema
public generate ( mixed $schema, string $className, Joli\Jane\Generator\Context\Context $context ) : File[]
$schema mixed Schema to generate from
$className string Class to generate
$context Joli\Jane\Generator\Context\Context Context for generation
return File[]

getNaming() protected method

The naming service
protected getNaming ( ) : Naming
return Naming

Property Details

$naming protected_oe property

The naming service
protected $naming

$useReference protected_oe property

Whether to generate the JSON Reference system
protected $useReference