ContextAwareNormalizerInterface
interface ContextAwareNormalizerInterface implements NormalizerInterface
Adds the support of an extra $context parameter for the supportsNormalization method.
Methods
array|string|int|float|bool
normalize(mixed $object, string $format = null, array $context = array())
Normalizes an object into a set of arrays/scalars.
from NormalizerInterface
bool
supportsNormalization(mixed $data, string $format = null, array $context = array())
Checks whether the given class is supported for normalization by this normalizer.