for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the DbImporter package.
*
* (c) Mauro Cassani<https://github.com/mauretto78>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DbImporter\Normalizer;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class StdClassNormalizer implements NormalizerInterface
{
* @param object $object
* @param null $format
$format
null
* @param array $context
* @return array
public function normalize($object, $format = null, array $context = array())
return get_object_vars($object);
}
* @param mixed $data
* @return bool
public function supportsNormalization($data, $format = null)
return $data instanceof \StdClass;