Overview

Namespaces

  • SellerLabs
    • Snagshout
      • Model
      • Normalizer
      • Resource
      • Utils

Classes

  • NormalizerFactory
  • NullNormalizer
  • Overview
  • Namespace
  • Class

Class NullNormalizer

Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer
Extended by SellerLabs\Snagshout\Utils\NullNormalizer implements Symfony\Component\Serializer\Normalizer\DenormalizerInterface, Symfony\Component\Serializer\Normalizer\NormalizerInterface
Namespace: SellerLabs\Snagshout\Utils
Located at SellerLabs/Snagshout/Utils/NullNormalizer.php
Methods summary
public object
# denormalize( mixed $data, string $class, string $format = null, array $context = array() )

Denormalizes data back into an object of the given class.

Denormalizes data back into an object of the given class.

Parameters

$data
data to restore
$class
the expected class to instantiate
$format
format the given data was extracted from
$context
options available to the denormalizer

Returns

object
public boolean
# supportsDenormalization( mixed $data, string $type, string $format = null )

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

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

Parameters

$data
Data to denormalize from
$type
The class to which the data should be denormalized
$format
The format being deserialized from

Returns

boolean
public array|scalar
# normalize( object $object, string $format = null, array $context = array() )

Normalizes an object into a set of arrays/scalars.

Normalizes an object into a set of arrays/scalars.

Parameters

$object
object to normalize
$format
format the normalization result will be encoded as
$context
Context options for the normalizer

Returns

array|scalar
public boolean
# supportsNormalization( mixed $data, string $format = null )

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

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

Parameters

$data
Data to normalize
$format
The format being (de-)serialized from or into

Returns

boolean
API documentation generated by ApiGen