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\Normalizer;
15 * DenormalizerAware trait.
17 * @author Joel Wurtz <joel.wurtz@gmail.com>
19 trait DenormalizerAwareTrait
22 * @var DenormalizerInterface
24 protected $denormalizer;
27 * Sets the Denormalizer.
29 * @param DenormalizerInterface $denormalizer A DenormalizerInterface instance
31 public function setDenormalizer(DenormalizerInterface $denormalizer)
33 $this->denormalizer = $denormalizer;