PHP Class ApiPlatform\SchemaGenerator\AnnotationGenerator\AbstractAnnotationGenerator

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

Protected Properties

Property Type Description
$cardinalities array
$classes array
$config array
$graphs EasyRdf_Graph[]
$logger Psr\Log\LoggerInterface

Public Methods

Method 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 )

Protected Methods

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

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

public generateAdderAnnotations ( $className, $fieldName )

generateClassAnnotations() public method

public generateClassAnnotations ( $className )

generateConstantAnnotations() public method

public generateConstantAnnotations ( $className, $constantName )

generateFieldAnnotations() public method

public generateFieldAnnotations ( $className, $fieldName )

generateGetterAnnotations() public method

public generateGetterAnnotations ( $className, $fieldName )

generateInterfaceAnnotations() public method

public generateInterfaceAnnotations ( $className )

generateRemoverAnnotations() public method

public generateRemoverAnnotations ( $className, $fieldName )

generateSetterAnnotations() public method

public generateSetterAnnotations ( $className, $fieldName )

generateUses() public method

public generateUses ( $className )

toPhpType() protected method

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

Property Details

$cardinalities protected_oe property

protected array $cardinalities
return array

$classes protected_oe property

protected array $classes
return array

$config protected_oe property

protected array $config
return array

$graphs protected_oe property

protected EasyRdf_Graph[] $graphs
return EasyRdf_Graph[]

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface