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
Afficher le fichier Open project: jolicode/jane Class Usage Examples

Protected Properties

Свойство Type Description
$naming The naming service
$useReference Whether to generate the JSON Reference system

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
createNormalizerFactoryClass ( $classes )
getNaming ( ) : Naming The naming service

Method Details

__construct() public méthode

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

createNormalizerFactoryClass() protected méthode

protected createNormalizerFactoryClass ( $classes )

generate() public méthode

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
Résultat File[]

getNaming() protected méthode

The naming service
protected getNaming ( ) : Naming
Résultat 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