PHP 클래스 ApiPlatform\Core\Metadata\Property\Factory\SerializerPropertyMetadataFactory

저자: Kévin Dunglas ([email protected])
저자: Teoh Han Hui ([email protected])
상속: implements ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

공개 메소드들

메소드 설명
__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