PHP Класс ApiPlatform\Core\Metadata\Property\Factory\ExtractorPropertyMetadataFactory

Автор: Kévin Dunglas ([email protected])
Наследование: implements ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ApiPlatform\Core\Metadata\Extractor\ExtractorInterface $extractor, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated = null )
create ( string $resourceClass, string $property, array $options = [] ) : PropertyMetadata

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный метод

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 create ( string $resourceClass, string $property, array $options = [] ) : PropertyMetadata
$resourceClass string
$property string
$options array
Результат ApiPlatform\Core\Metadata\Property\PropertyMetadata