PHP Class ApiPlatform\SchemaGenerator\AnnotationGenerator\AbstractAnnotationGenerator

Author: Kévin Dunglas ([email protected])
Inheritance: implements ApiPlatform\SchemaGenerator\AnnotationGenerator\AnnotationGeneratorInterface
Afficher le fichier Open project: api-platform/schema-generator Class Usage Examples

Protected Properties

Свойство Type Description
$cardinalities array
$classes array
$config array
$graphs EasyRdf_Graph[]
$logger Psr\Log\LoggerInterface

Méthodes publiques

Méthode Description
__construct ( Psr\Log\LoggerInterface $logger, array $graphs, array $cardinalities, array $config, array $classes )
generateAdderAnnotations ( $className, $fieldName )
generateClassAnnotations ( $className )
generateConstantAnnotations ( $className, $constantName )
generateFieldAnnotations ( $className, $fieldName )
generateGetterAnnotations ( $className, $fieldName )
generateInterfaceAnnotations ( $className )
generateRemoverAnnotations ( $className, $fieldName )
generateSetterAnnotations ( $className, $fieldName )
generateUses ( $className )

Méthodes protégées

Méthode Description
toPhpType ( array $field, boolean $adderOrRemover = false ) : string Converts a Schema.org range to a PHP type.

Method Details

__construct() public méthode

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

public generateAdderAnnotations ( $className, $fieldName )

generateClassAnnotations() public méthode

public generateClassAnnotations ( $className )

generateConstantAnnotations() public méthode

public generateConstantAnnotations ( $className, $constantName )

generateFieldAnnotations() public méthode

public generateFieldAnnotations ( $className, $fieldName )

generateGetterAnnotations() public méthode

public generateGetterAnnotations ( $className, $fieldName )

generateInterfaceAnnotations() public méthode

public generateInterfaceAnnotations ( $className )

generateRemoverAnnotations() public méthode

public generateRemoverAnnotations ( $className, $fieldName )

generateSetterAnnotations() public méthode

public generateSetterAnnotations ( $className, $fieldName )

generateUses() public méthode

public generateUses ( $className )

toPhpType() protected méthode

Converts a Schema.org range to a PHP type.
protected toPhpType ( array $field, boolean $adderOrRemover = false ) : string
$field array
$adderOrRemover boolean
Résultat string

Property Details

$cardinalities protected_oe property

protected array $cardinalities
Résultat array

$classes protected_oe property

protected array $classes
Résultat array

$config protected_oe property

protected array $config
Résultat array

$graphs protected_oe property

protected EasyRdf_Graph[] $graphs
Résultat EasyRdf_Graph[]

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface