// callbacks
protected function getNormalizerForCallbacks(): ObjectNormalizer
{ return new ObjectNormalizer();
} protected function getNormalizerForCallbacksWithPropertyTypeExtractor(): ObjectNormalizer
{ return new ObjectNormalizer(null, null, null,
$this->
getCallbackPropertyTypeExtractor());
} // circular reference
protected function getNormalizerForCircularReference(array
$defaultContext): ObjectNormalizer
{ $normalizer =
new ObjectNormalizer(null, null, null, null, null, null,
$defaultContext);
new Serializer([$normalizer]);
return $normalizer;
}