4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Serializer\Tests\Fixtures;
14 use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
17 * @author Guilhem N. <egetick@gmail.com>
19 class StaticConstructorNormalizer extends ObjectNormalizer
24 protected function getConstructor(array &$data, $class, array &$context, \ReflectionClass $reflectionClass, $allowedAttributes)
26 if (is_a($class, StaticConstructorDummy::class, true)) {
27 return new \ReflectionMethod($class, 'create');
30 return parent::getConstructor($data, $class, $context, $reflectionClass, $allowedAttributes);