SerializerAwareInterface.php 780 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Symfony\Component\Serializer;
  3. use Symfony\Component\Serializer\SerializerInterface;
  4. /*
  5. * This file is part of the Symfony framework.
  6. *
  7. * (c) Fabien Potencier <fabien@symfony.com>
  8. *
  9. * This source file is subject to the MIT license that is bundled
  10. * with this source code in the file LICENSE.
  11. */
  12. /**
  13. * Defines the interface of encoders
  14. *
  15. * @author Jordi Boggiano <j.boggiano@seld.be>
  16. */
  17. interface SerializerAwareInterface
  18. {
  19. /**
  20. * Sets the owning Serializer object
  21. *
  22. * @param SerializerInterface $serializer
  23. * @api
  24. */
  25. function setSerializer(SerializerInterface $serializer);
  26. /**
  27. * Gets the owning Serializer object
  28. *
  29. * @return SerializerInterface
  30. * @api
  31. */
  32. function getSerializer();
  33. }