public function GetSetMethodNormalizer::supportsNormalization in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php \Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer::supportsNormalization()
Checks whether the given class is supported for normalization by this normalizer.
Parameters
mixed $data Data to normalize.:
string $format The format being (de-)serialized from or into.:
Return value
bool
Overrides NormalizerInterface::supportsNormalization
File
- vendor/
symfony/ serializer/ Normalizer/ GetSetMethodNormalizer.php, line 129
Class
- GetSetMethodNormalizer
- Converts between objects with getter and setter methods and arrays.
Namespace
Symfony\Component\Serializer\NormalizerCode
public function supportsNormalization($data, $format = null) {
return is_object($data) && !$data instanceof \Traversable && $this
->supports(get_class($data));
}