public function setFallbackNormalizer(NormalizerInterface
$normalizer) { $this->fallbackNormalizer =
$normalizer;
} /**
* {@inheritdoc}
*/
public function normalize($data,
$format = NULL, array
$context =
[]): array|string|int|float|bool|\ArrayObject|NULL
{ if ($this->
selfSupportsNormalization($data,
$format,
$context)) { return parent::
normalize($data,
$format,
$context);
} if ($this->fallbackNormalizer->
supportsNormalization($data,
$format,
$context)) { return $this->fallbackNormalizer->
normalize($data,
$format,
$context);
} return parent::
normalize($data,
$format,
$context);
} /**
* {@inheritdoc}
*/