NullIdentity.php 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Sales\Model\Order\Email\Container;
  8. class NullIdentity extends Container implements IdentityInterface
  9. {
  10. /**
  11. * @inheritdoc
  12. */
  13. public function isEnabled()
  14. {
  15. return true;
  16. }
  17. /**
  18. * @inheritdoc
  19. */
  20. public function getEmailCopyTo()
  21. {
  22. return false;
  23. }
  24. /**
  25. * @inheritdoc
  26. */
  27. public function getCopyMethod()
  28. {
  29. return '';
  30. }
  31. /**
  32. * @inheritdoc
  33. */
  34. public function getGuestTemplateId()
  35. {
  36. return null;
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function getTemplateId()
  42. {
  43. return null;
  44. }
  45. /**
  46. * @inheritdoc
  47. */
  48. public function getEmailIdentity()
  49. {
  50. return '';
  51. }
  52. }