GeneratorInterface.php 599 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Signifyd\Model\MessageGenerators;
  7. /**
  8. * Represents common abstraction for Signifyd Case/Guarantee messages.
  9. * Each interface implementation might use Case/Guarantee data to generate specific message.
  10. */
  11. interface GeneratorInterface
  12. {
  13. /**
  14. * Creates new localized message based on Signifyd Case/Guarantee data.
  15. * @param array $data
  16. * @return \Magento\Framework\Phrase
  17. * @throws GeneratorException
  18. */
  19. public function generate(array $data);
  20. }