NormalizerInterface
interface NormalizerInterface
Defines the interface of normalizers.
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.
bool
supportsNormalization(mixed $data, string $format = null)
Checks whether the given class is supported for normalization by this normalizer.
Details
at line line 30
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 40
bool
supportsNormalization(mixed $data, string $format = null)
Checks whether the given class is supported for normalization by this normalizer.