You are here

public function ObjectNormalizer::supportsDenormalization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Normalizer/ObjectNormalizer.php \Symfony\Component\Serializer\Normalizer\ObjectNormalizer::supportsDenormalization()

Checks whether the given class is supported for denormalization by this normalizer.

Parameters

mixed $data Data to denormalize from.:

string $type The class to which the data should be denormalized.:

string $format The format being deserialized from.:

Return value

bool

Overrides DenormalizerInterface::supportsDenormalization

File

vendor/symfony/serializer/Normalizer/ObjectNormalizer.php, line 127

Class

ObjectNormalizer
Converts between objects and arrays using the PropertyAccess component.

Namespace

Symfony\Component\Serializer\Normalizer

Code

public function supportsDenormalization($data, $type, $format = null) {
  return class_exists($type);
}