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 * NormalizerAware trait.
17 * @author Joel Wurtz <joel.wurtz@gmail.com>
19 trait NormalizerAwareTrait
22 * @var NormalizerInterface
24 protected $normalizer;
27 * Sets the normalizer.
29 * @param NormalizerInterface $normalizer A NormalizerInterface instance
31 public function setNormalizer(NormalizerInterface $normalizer)
33 $this->normalizer = $normalizer;