CustomNormalizer
class CustomNormalizer extends SerializerAwareNormalizer implements NormalizerInterface, DenormalizerInterface
Methods
array|string|bool|int|float|null
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
in SerializerAwareNormalizer at line line 32
setSerializer(SerializerInterface $serializer)
Sets the owning Serializer object.
at line line 22
array|string|bool|int|float|null
normalize(object $object, string $format = null, array $context = array())
Normalizes an object into a set of arrays/scalars.
at line line 30
object
denormalize(mixed $data, string $class, string $format = null, array $context = array())
Denormalizes data back into an object of the given class.
at line line 46
bool
supportsNormalization(mixed $data, string $format = null)
Checks if the given class implements the NormalizableInterface.
at line line 60
bool
supportsDenormalization(mixed $data, string $type, string $format = null)
Checks if the given class implements the NormalizableInterface.