code: public function setSerializer(SerializerInterface $serializer)
      {
          $this->serializer = $serializer;
  
          if ($this->decorated instanceof SerializerAwareInterface) {
              $this->decorated->setSerializer($serializer);
          }
      }
docs: {@inheritdoc}