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

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

공개 메소드들

메소드 설명
normalize ( $object, $format = null, array $context = [] )
supportsNormalization ( $data, $format = null )

보호된 메소드들

메소드 설명
isAssociationSerializable ( string $associationName, WellCommerce\Bundle\ApiBundle\Metadata\Collection\AssociationMetadataCollection $collection ) : boolean Checks whether the association is serializable
isEmbeddableSerializable ( string $embeddableName, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection ) : boolean Checks whether the embeddable field is serializable
isFieldSerializable ( string $fieldName, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection ) : boolean Checks whether the field is serializable
normalizeAssociations ( array $associations, WellCommerce\Bundle\ApiBundle\Metadata\Collection\AssociationMetadataCollection $collection, object $object, array &$data ) Normalizes the entity's associations
normalizeEmbeddables ( array $embeddables, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection, object $object, array &$data ) Normalizes the entity's embeddables
normalizeFields ( array $fields, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection, object $object, array &$data ) Normalizes the entity's fields

메소드 상세

isAssociationSerializable() 보호된 메소드

Checks whether the association is serializable
protected isAssociationSerializable ( string $associationName, WellCommerce\Bundle\ApiBundle\Metadata\Collection\AssociationMetadataCollection $collection ) : boolean
$associationName string
$collection WellCommerce\Bundle\ApiBundle\Metadata\Collection\AssociationMetadataCollection
리턴 boolean

isEmbeddableSerializable() 보호된 메소드

Checks whether the embeddable field is serializable
protected isEmbeddableSerializable ( string $embeddableName, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection ) : boolean
$embeddableName string
$collection WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection
리턴 boolean

isFieldSerializable() 보호된 메소드

Checks whether the field is serializable
protected isFieldSerializable ( string $fieldName, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection ) : boolean
$fieldName string
$collection WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection
리턴 boolean

normalize() 공개 메소드

public normalize ( $object, $format = null, array $context = [] )
$context array

normalizeAssociations() 보호된 메소드

Normalizes the entity's associations
protected normalizeAssociations ( array $associations, WellCommerce\Bundle\ApiBundle\Metadata\Collection\AssociationMetadataCollection $collection, object $object, array &$data )
$associations array
$collection WellCommerce\Bundle\ApiBundle\Metadata\Collection\AssociationMetadataCollection
$object object
$data array

normalizeEmbeddables() 보호된 메소드

Normalizes the entity's embeddables
protected normalizeEmbeddables ( array $embeddables, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection, object $object, array &$data )
$embeddables array
$collection WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection
$object object
$data array

normalizeFields() 보호된 메소드

Normalizes the entity's fields
protected normalizeFields ( array $fields, WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection $collection, object $object, array &$data )
$fields array
$collection WellCommerce\Bundle\ApiBundle\Metadata\Collection\FieldMetadataCollection
$object object
$data array

supportsNormalization() 공개 메소드

public supportsNormalization ( $data, $format = null )