Template.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Email\Container;
  7. class Template
  8. {
  9. /**
  10. * @var array
  11. */
  12. protected $vars;
  13. /**
  14. * @var array
  15. */
  16. protected $options;
  17. /**
  18. * @var string
  19. */
  20. protected $templateId;
  21. /**
  22. * @var int
  23. */
  24. protected $id;
  25. /**
  26. * Set email template variables
  27. *
  28. * @param array $vars
  29. * @return void
  30. */
  31. public function setTemplateVars(array $vars)
  32. {
  33. $this->vars = $vars;
  34. }
  35. /**
  36. * Set email template options
  37. *
  38. * @param array $options
  39. * @return void
  40. */
  41. public function setTemplateOptions(array $options)
  42. {
  43. $this->options = $options;
  44. }
  45. /**
  46. * Get email template variables
  47. *
  48. * @return array
  49. */
  50. public function getTemplateVars()
  51. {
  52. return $this->vars;
  53. }
  54. /**
  55. * Get email template options
  56. *
  57. * @return array
  58. */
  59. public function getTemplateOptions()
  60. {
  61. return $this->options;
  62. }
  63. /**
  64. * Set email template id
  65. *
  66. * @param int $id
  67. * @return void
  68. */
  69. public function setTemplateId($id)
  70. {
  71. $this->id = $id;
  72. }
  73. /**
  74. * Get email template id
  75. *
  76. * @return int
  77. */
  78. public function getTemplateId()
  79. {
  80. return $this->id;
  81. }
  82. }