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

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

Public Methods

Method Description
__construct ( ApiPlatform\Core\Metadata\Extractor\ExtractorInterface $extractor, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated = null )
create ( string $resourceClass, string $property, array $options = [] ) : PropertyMetadata

Private Methods

Method Description
handleNotFound ( PropertyMetadata $parentPropertyMetadata = null, string $resourceClass, string $property ) : PropertyMetadata Returns the metadata from the decorated factory if available or throws an exception.
update ( PropertyMetadata $propertyMetadata, array $metadata ) : PropertyMetadata Creates a new instance of metadata if the property is not already set.

Method Details

__construct() public method

public __construct ( ApiPlatform\Core\Metadata\Extractor\ExtractorInterface $extractor, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated = null )
$extractor ApiPlatform\Core\Metadata\Extractor\ExtractorInterface
$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