PHP Class ApiPlatform\Core\Metadata\Property\Factory\AnnotationPropertyMetadataFactory

Author: Kévin Dunglas ([email protected])
Inheritance: implements ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
显示文件 Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
__construct ( Doctrine\Common\Annotations\Reader $reader, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated = null )
create ( string $resourceClass, string $property, array $options = [] ) : PropertyMetadata

Private Methods

Method Description
createMetadata ( ApiProperty $annotation, PropertyMetadata $parentPropertyMetadata = null ) : PropertyMetadata
createWith ( PropertyMetadata $propertyMetadata, array $property, $value ) : PropertyMetadata
handleNotFound ( PropertyMetadata $parentPropertyMetadata = null, string $resourceClass, string $property ) : PropertyMetadata Returns the metadata from the decorated factory if available or throws an exception.

Method Details

__construct() public method

public __construct ( Doctrine\Common\Annotations\Reader $reader, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated = null )
$reader Doctrine\Common\Annotations\Reader
$decorated ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface

create() public method

public create ( string $resourceClass, string $property, array $options = [] ) : PropertyMetadata
$resourceClass string
$property string
$options array
return ApiPlatform\Core\Metadata\Property\PropertyMetadata