Base class for Normalizers.
Expanded class hierarchy of NormalizerBase
abstract class NormalizerBase extends SerializerAwareNormalizer implements NormalizerInterface {
/**
* The interface or class that this Normalizer supports.
*
* @var string
*/
protected $supportedInterfaceOrClass;
/**
* Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization().
*/
public function supportsNormalization($data, $format = NULL) {
return is_object($data) && $data instanceof $this->supportedInterfaceOrClass;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NormalizerBase:: |
protected | property | The interface or class that this Normalizer supports. | 6 |
NormalizerBase:: |
public | function |
Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization(). Overrides NormalizerInterface:: |
1 |
NormalizerInterface:: |
public | function | Normalizes an object into a set of arrays/scalars | 11 |
SerializerAwareNormalizer:: |
protected | property | ||
SerializerAwareNormalizer:: |
public | function |
Sets the owning Serializer object Overrides SerializerAwareInterface:: |