SenderResolverInterface.php 764 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Mail\Template;
  7. /**
  8. * Mail Sender Resolver interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface SenderResolverInterface
  14. {
  15. /**
  16. * Resolve sender information. The $sender can be a string to identify which sender to lookup in the config and
  17. * return the name and email for. The $sender can be an array prefilled with the name and email key/value pairs.
  18. *
  19. * @throws \Magento\Framework\Exception\MailException
  20. * @param string|array $sender
  21. * @param int|null $scopeId
  22. * @return array an array with 'name' and 'email' key/value pairs
  23. */
  24. public function resolve($sender, $scopeId = null);
  25. }