class CustomNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInterface
Traits
| SerializerAwareTrait | SerializerAware trait. |
Methods
| setSerializer(SerializerInterface $serializer) Sets the serializer. | from SerializerAwareTrait | |
| array|scalar | normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. | |
| object | denormalize(mixed $data, string $class, string $format = null, array $context = array()) Denormalizes data back into an object of the given class. | |
| bool | supportsNormalization(mixed $data, string $format = null) Checks if the given class implements the NormalizableInterface. | |
| bool | supportsDenormalization(mixed $data, string $type, string $format = null) Checks if the given class implements the NormalizableInterface. |
Details
setSerializer(SerializerInterface $serializer)
Sets the serializer.
array|scalar normalize(object $object, string $format = null, array $context = array())
Normalizes an object into a set of arrays/scalars.
object denormalize(mixed $data, string $class, string $format = null, array $context = array())
Denormalizes data back into an object of the given class.
bool supportsNormalization(mixed $data, string $format = null)
Checks if the given class implements the NormalizableInterface.
bool supportsDenormalization(mixed $data, string $type, string $format = null)
Checks if the given class implements the NormalizableInterface.
Please login to continue.