selfSupportsDenormalization example


    if ($this->fallbackNormalizer->supportsNormalization($data$format$context)) {
      return $this->fallbackNormalizer->normalize($data$format$context);
    }
    return parent::normalize($data$format$context);
  }

  /** * {@inheritdoc} */
  public function denormalize($data$type$format = NULL, array $context = []): mixed {
    if ($this->selfSupportsDenormalization($data$type$format$context)) {
      return parent::denormalize($data$type$format$context);
    }
    return $this->fallbackNormalizer->denormalize($data$type$format$context);
  }

  /** * {@inheritdoc} */
  public function supportsNormalization($data, string $format = NULL, array $context = []): bool {
    return $this->selfSupportsNormalization($data$format$context) || $this->fallbackNormalizer->supportsNormalization($data$format$context);
  }

  
Home | Imprint | This part of the site doesn't use cookies.