PHP Interface ApiPlatform\SchemaGenerator\AnnotationGenerator\AnnotationGeneratorInterface

Author: Kévin Dunglas ([email protected])
Mostra file Open project: api-platform/schema-generator

Public Methods

Method Description
__construct ( Psr\Log\LoggerInterface $logger, array $graphs, array $cardinalities, array $config, array $classes )
generateAdderAnnotations ( string $className, string $fieldName ) : array Generates adder's annotation.
generateClassAnnotations ( string $className ) : array Generates class' annotations.
generateConstantAnnotations ( string $className, string $constantName ) : array Generates constant's annotations.
generateFieldAnnotations ( string $className, string $fieldName ) : array Generates field's annotation.
generateGetterAnnotations ( string $className, string $fieldName ) : array Generates getter's annotation.
generateInterfaceAnnotations ( string $className ) : array Generates interface's annotations.
generateRemoverAnnotations ( string $className, string $fieldName ) : array Generates remover's annotation.
generateSetterAnnotations ( string $className, string $fieldName ) : array Generates setter's annotation.
generateUses ( string $className ) : array Generates uses.

Method Details

__construct() public method

public __construct ( Psr\Log\LoggerInterface $logger, array $graphs, array $cardinalities, array $config, array $classes )
$logger Psr\Log\LoggerInterface
$graphs array
$cardinalities array
$config array
$classes array

generateAdderAnnotations() public method

Generates adder's annotation.
public generateAdderAnnotations ( string $className, string $fieldName ) : array
$className string
$fieldName string
return array

generateClassAnnotations() public method

Generates class' annotations.
public generateClassAnnotations ( string $className ) : array
$className string
return array

generateConstantAnnotations() public method

Generates constant's annotations.
public generateConstantAnnotations ( string $className, string $constantName ) : array
$className string
$constantName string
return array

generateFieldAnnotations() public method

Generates field's annotation.
public generateFieldAnnotations ( string $className, string $fieldName ) : array
$className string
$fieldName string
return array

generateGetterAnnotations() public method

Generates getter's annotation.
public generateGetterAnnotations ( string $className, string $fieldName ) : array
$className string
$fieldName string
return array

generateInterfaceAnnotations() public method

Generates interface's annotations.
public generateInterfaceAnnotations ( string $className ) : array
$className string
return array

generateRemoverAnnotations() public method

Generates remover's annotation.
public generateRemoverAnnotations ( string $className, string $fieldName ) : array
$className string
$fieldName string
return array

generateSetterAnnotations() public method

Generates setter's annotation.
public generateSetterAnnotations ( string $className, string $fieldName ) : array
$className string
$fieldName string
return array

generateUses() public method

Generates uses.
public generateUses ( string $className ) : array
$className string
return array