PHP 클래스 WellCommerce\Bundle\ApiBundle\Serializer\AbstractSerializer

저자: Adam Piotrowski ([email protected])
상속: implements Symfony\Component\Serializer\SerializerAwareInterface
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$context array
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$format string
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessor
$serializationMetadataCollection WellCommerce\Bundle\ApiBundle\Metadata\Collection\SerializationMetadataCollection
$serializationMetadataLoader WellCommerce\Bundle\ApiBundle\Metadata\Loader\SerializationMetadataLoaderInterface
$serializer Symfony\Component\Serializer\SerializerInterface | Symfony\Component\Serializer\Normalizer\NormalizerInterface | Symfony\Component\Serializer\Normalizer\DenormalizerInterface

공개 메소드들

메소드 설명
__construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, WellCommerce\Bundle\ApiBundle\Metadata\Loader\SerializationMetadataLoaderInterface $serializationMetadataLoader ) AbstractSerializer constructor.
setSerializer ( Symfony\Component\Serializer\SerializerInterface $serializer )

보호된 메소드들

메소드 설명
buildPath ( $propertyName ) : Symfony\Component\PropertyAccess\PropertyPath
getEntityAssociations ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : array Returns the entity fields
getEntityEmbeddables ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : array Returns the entity embeddable fields
getEntityFields ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : array Returns the entity fields
getEntityMetadata ( object $entity ) : Doctrine\Common\Persistence\Mapping\ClassMetadata Returns the metadata for entity
getPropertyPath ( $attributeName ) : Symfony\Component\PropertyAccess\PropertyPath Builds property path in array-notation style from given attribute's name
getSerializationMetadata ( object $entity ) : WellCommerce\Bundle\ApiBundle\Metadata\SerializationClassMetadataInterface Returns the serialization metadata for given entity
getSerializationMetadataCollection ( ) : WellCommerce\Bundle\ApiBundle\Metadata\Collection\SerializationMetadataCollection

비공개 메소드들

메소드 설명
getRealClass ( object $object ) : string Returns the real class name

메소드 상세

__construct() 공개 메소드

AbstractSerializer constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, WellCommerce\Bundle\ApiBundle\Metadata\Loader\SerializationMetadataLoaderInterface $serializationMetadataLoader )
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$serializationMetadataLoader WellCommerce\Bundle\ApiBundle\Metadata\Loader\SerializationMetadataLoaderInterface

buildPath() 보호된 메소드

protected buildPath ( $propertyName ) : Symfony\Component\PropertyAccess\PropertyPath
$propertyName
리턴 Symfony\Component\PropertyAccess\PropertyPath

getEntityAssociations() 보호된 메소드

Returns the entity fields
protected getEntityAssociations ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : array
$metadata Doctrine\Common\Persistence\Mapping\ClassMetadata
리턴 array

getEntityEmbeddables() 보호된 메소드

Returns the entity embeddable fields
protected getEntityEmbeddables ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : array
$metadata Doctrine\Common\Persistence\Mapping\ClassMetadata
리턴 array

getEntityFields() 보호된 메소드

Returns the entity fields
protected getEntityFields ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : array
$metadata Doctrine\Common\Persistence\Mapping\ClassMetadata
리턴 array

getEntityMetadata() 보호된 메소드

Returns the metadata for entity
protected getEntityMetadata ( object $entity ) : Doctrine\Common\Persistence\Mapping\ClassMetadata
$entity object
리턴 Doctrine\Common\Persistence\Mapping\ClassMetadata

getPropertyPath() 보호된 메소드

Builds property path in array-notation style from given attribute's name
protected getPropertyPath ( $attributeName ) : Symfony\Component\PropertyAccess\PropertyPath
$attributeName
리턴 Symfony\Component\PropertyAccess\PropertyPath

getSerializationMetadata() 보호된 메소드

Returns the serialization metadata for given entity
protected getSerializationMetadata ( object $entity ) : WellCommerce\Bundle\ApiBundle\Metadata\SerializationClassMetadataInterface
$entity object
리턴 WellCommerce\Bundle\ApiBundle\Metadata\SerializationClassMetadataInterface

getSerializationMetadataCollection() 보호된 메소드

protected getSerializationMetadataCollection ( ) : WellCommerce\Bundle\ApiBundle\Metadata\Collection\SerializationMetadataCollection
리턴 WellCommerce\Bundle\ApiBundle\Metadata\Collection\SerializationMetadataCollection

setSerializer() 공개 메소드

public setSerializer ( Symfony\Component\Serializer\SerializerInterface $serializer )
$serializer Symfony\Component\Serializer\SerializerInterface

프로퍼티 상세

$context 보호되어 있는 프로퍼티

protected array $context
리턴 array

$doctrineHelper 보호되어 있는 프로퍼티

protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $doctrineHelper
리턴 WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

$format 보호되어 있는 프로퍼티

protected string $format
리턴 string

$propertyAccessor 보호되어 있는 프로퍼티

protected PropertyAccessor,Symfony\Component\PropertyAccess $propertyAccessor
리턴 Symfony\Component\PropertyAccess\PropertyAccessor

$serializationMetadataCollection 보호되어 있는 프로퍼티

protected SerializationMetadataCollection,WellCommerce\Bundle\ApiBundle\Metadata\Collection $serializationMetadataCollection
리턴 WellCommerce\Bundle\ApiBundle\Metadata\Collection\SerializationMetadataCollection

$serializationMetadataLoader 보호되어 있는 프로퍼티

protected SerializationMetadataLoaderInterface,WellCommerce\Bundle\ApiBundle\Metadata\Loader $serializationMetadataLoader
리턴 WellCommerce\Bundle\ApiBundle\Metadata\Loader\SerializationMetadataLoaderInterface

$serializer 보호되어 있는 프로퍼티

protected SerializerInterface,Symfony\Component\Serializer|NormalizerInterface,Symfony\Component\Serializer\Normalizer|DenormalizerInterface,Symfony\Component\Serializer\Normalizer $serializer
리턴 Symfony\Component\Serializer\SerializerInterface | Symfony\Component\Serializer\Normalizer\NormalizerInterface | Symfony\Component\Serializer\Normalizer\DenormalizerInterface