Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $classMetadataFactory = null, Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter = null, Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface $propertyTypeExtractor = null ) | ||
denormalize ( $data, $class, $format = null, array $context = [] ) | ||
normalize ( $object, $format = null, array $context = [] ) | ||
supportsDenormalization ( $data, $type, $format = null ) | ||
supportsNormalization ( $data, $format = null ) |
Метод | Описание | |
---|---|---|
extractAttributes ( object $object, string | null $format = null, array $context = [] ) : string[] | Extracts attributes to normalize from the class of the given object, format and context. | |
getAttributeValue ( object $object, string $attribute, string | null $format = null, array $context = [] ) : mixed | Gets the attribute value. | |
getAttributes ( object $object, string | null $format = null, array $context ) : string[] | Gets and caches attributes for the given object, format and context. | |
setAttributeValue ( object $object, string $attribute, mixed $value, string | null $format = null, array $context = [] ) | Sets attribute value. |
Метод | Описание | |
---|---|---|
getCacheKey ( string | null $format, array $context ) : boolean | string | Gets the cache key to use. | |
isMaxDepthReached ( array $attributesMetadata, string $class, string $attribute, array &$context ) : boolean | Is the max depth reached for the given attribute? | |
updateData ( array $data, string $attribute, mixed $attributeValue ) : array | Sets an attribute and apply the name converter if necessary. | |
validateAndDenormalize ( string $currentClass, string $attribute, mixed $data, string | null $format, array $context ) : mixed | Validates the submitted data and denormalizes it. |
public __construct ( Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $classMetadataFactory = null, Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter = null, Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface $propertyTypeExtractor = null ) | ||
$classMetadataFactory | Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface | |
$nameConverter | Symfony\Component\Serializer\NameConverter\NameConverterInterface | |
$propertyTypeExtractor | Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface |
public denormalize ( $data, $class, $format = null, array $context = [] ) | ||
$context | array |
public supportsDenormalization ( $data, $type, $format = null ) |