* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Serializer; /** * @author Joel Wurtz */ trait SerializerAwareTrait { protected ?SerializerInterface $serializer = null; public function setSerializer(SerializerInterface $serializer): void { $this->serializer = $serializer; } }