for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Actualys\Bundle\DrupalCommerceConnectorBundle\Normalizer\Attribute;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Pim\Bundle\CatalogBundle\Entity\Attribute;
/**
* Class AbstractMediaNormalizer
*
* @package Actualys\Bundle\DrupalCommerceConnectorBundle\Normalizer
*/
abstract class AbstractMediaNormalizer implements NormalizerInterface
{
* Checks whether the given class is supported for normalization by this normalizer
* @param mixed $data Data to normalize.
* @param string $format The format being (de-)serialized from or into.
* @return boolean
public function supportsNormalization($data, $format = null)
return $data instanceof Attribute;
}