Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Serializer\Normalizer; Chris@0: Chris@0: /** Chris@0: * NormalizerAware trait. Chris@0: * Chris@0: * @author Joel Wurtz Chris@0: */ Chris@0: trait NormalizerAwareTrait Chris@0: { Chris@0: /** Chris@0: * @var NormalizerInterface Chris@0: */ Chris@0: protected $normalizer; Chris@0: Chris@0: /** Chris@0: * Sets the normalizer. Chris@0: * Chris@0: * @param NormalizerInterface $normalizer A NormalizerInterface instance Chris@0: */ Chris@0: public function setNormalizer(NormalizerInterface $normalizer) Chris@0: { Chris@0: $this->normalizer = $normalizer; Chris@0: } Chris@0: }