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

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

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

Метод Описание
__construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $serializerClassMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated )
create ( string $resourceClass, string $property, array $options = [] ) : PropertyMetadata

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

Метод Описание
getEffectiveSerializerGroups ( array $options, string $resourceClass ) : array Gets the effective serializer groups used in normalization/denormalization.
getPropertySerializerGroups ( string $resourceClass, string $property ) : array Gets the serializer groups defined on a property.
getResourceSerializerGroups ( string $resourceClass ) : array Gets the serializer groups defined in a resource.
transformLinkStatus ( PropertyMetadata $propertyMetadata, array $normalizationGroups = null, array $denormalizationGroups = null ) : PropertyMetadata Sets readableLink/writableLink based on matching normalization/denormalization groups.
transformReadWrite ( PropertyMetadata $propertyMetadata, string $resourceClass, string $propertyName, array $normalizationGroups = null, array $denormalizationGroups = null ) : PropertyMetadata Sets readable/writable based on matching normalization/denormalization groups.

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

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

public __construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $serializerClassMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated )
$resourceMetadataFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
$serializerClassMetadataFactory Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface
$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