TemplateInterface.php 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Mail;
  7. /**
  8. * Mail Template interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface TemplateInterface extends \Magento\Framework\App\TemplateTypesInterface
  14. {
  15. /**
  16. * Get processed template
  17. *
  18. * @return string
  19. */
  20. public function processTemplate();
  21. /**
  22. * Get processed subject
  23. *
  24. * @return string
  25. */
  26. public function getSubject();
  27. /**
  28. * Set template variables
  29. *
  30. * @param array $vars
  31. * @return $this
  32. */
  33. public function setVars(array $vars);
  34. /**
  35. * Set template options
  36. *
  37. * @param array $options
  38. * @return $this
  39. */
  40. public function setOptions(array $options);
  41. }