UrlFinderInterface.php 634 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\UrlRewrite\Model;
  7. /**
  8. * Url Finder Interface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface UrlFinderInterface
  13. {
  14. /**
  15. * Find rewrite by specific data
  16. *
  17. * @param array $data
  18. * @return \Magento\UrlRewrite\Service\V1\Data\UrlRewrite|null
  19. */
  20. public function findOneByData(array $data);
  21. /**
  22. * Find rewrites by specific data
  23. *
  24. * @param array $data
  25. * @return \Magento\UrlRewrite\Service\V1\Data\UrlRewrite[]
  26. */
  27. public function findAllByData(array $data);
  28. }