PHP Class ApiPlatform\SchemaGenerator\AnnotationGenerator\PhpDocAnnotationGenerator

Author: Kévin Dunglas ([email protected])
Inheritance: extends AbstractAnnotationGenerator
Afficher le fichier Open project: api-platform/schema-generator

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 )

Private Methods

Méthode Description
formatDoc ( string $doc, boolean $indent = false ) : array Converts HTML to Markdown and explode.
generateDoc ( string $className, boolean $interface = false ) : array Generates class or interface PHPDoc.

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 )