PHP Класс ApiPlatform\Core\Metadata\Resource\Factory\ExtractorResourceMetadataFactory

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

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

Метод Описание
__construct ( ApiPlatform\Core\Metadata\Extractor\ExtractorInterface $extractor, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $decorated = null )
create ( string $resourceClass ) : ResourceMetadata

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

Метод Описание
handleNotFound ( ResourceMetadata $parentPropertyMetadata = null, string $resourceClass ) : ResourceMetadata Returns the metadata from the decorated factory if available or throws an exception.
update ( ResourceMetadata $resourceMetadata, array $metadata ) : ResourceMetadata 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\Resource\Factory\ResourceMetadataFactoryInterface $decorated = null )
$extractor ApiPlatform\Core\Metadata\Extractor\ExtractorInterface
$decorated ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface

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

public create ( string $resourceClass ) : ResourceMetadata
$resourceClass string
Результат ApiPlatform\Core\Metadata\Resource\ResourceMetadata