PHP Class ApiPlatform\SchemaGenerator\AnnotationGenerator\PhpDocAnnotationGenerator

Author: Kévin Dunglas ([email protected])
Inheritance: extends AbstractAnnotationGenerator
Show 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 ( $className, $fieldName )
generateClassAnnotations ( $className )
generateConstantAnnotations ( $className, $constantName )
generateFieldAnnotations ( $className, $fieldName )
generateGetterAnnotations ( $className, $fieldName )
generateInterfaceAnnotations ( $className )
generateRemoverAnnotations ( $className, $fieldName )
generateSetterAnnotations ( $className, $fieldName )

Private Methods

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