CustomNormalizer
CustomNormalizer
class CustomNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInterface
Traits
SerializerAwareTrait | SerializerAware trait. |
Methods
setSerializer(SerializerInterface $serializer) Sets the serializer. | from SerializerAwareTrait | |
array|scalar | normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. | |
object | denormalize(mixed $data, string $class, string $format = null, array $context = array()) Denormalizes data back into an object of the given class. | |
bool | supportsNormalization(mixed $data, string $format = null) Checks if the given class implements the NormalizableInterface. | |
bool | supportsDenormalization(mixed $data, string $type, string $format = null) Checks if the given class implements the NormalizableInterface. |
Details
setSerializer(SerializerInterface $serializer)
Sets the serializer.
array|scalar normalize(object $object, string $format = null, array $context = array())
Normalizes an object into a set of arrays/scalars.
object denormalize(mixed $data, string $class, string $format = null, array $context = array())
Denormalizes data back into an object of the given class.
bool supportsNormalization(mixed $data, string $format = null)
Checks if the given class implements the NormalizableInterface.
bool supportsDenormalization(mixed $data, string $type, string $format = null)
Checks if the given class implements the NormalizableInterface.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Serializer/Normalizer/CustomNormalizer.html