GroupRepositoryInterface.php 739 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Store\Api;
  7. use Magento\Framework\Exception\NoSuchEntityException;
  8. /**
  9. * Group repository interface
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface GroupRepositoryInterface
  15. {
  16. /**
  17. * Retrieve group by id
  18. *
  19. * @param int $id
  20. * @return \Magento\Store\Api\Data\GroupInterface
  21. * @throws NoSuchEntityException
  22. */
  23. public function get($id);
  24. /**
  25. * Retrieve list of all groups
  26. *
  27. * @return \Magento\Store\Api\Data\GroupInterface[]
  28. */
  29. public function getList();
  30. /**
  31. * Clear cached entities
  32. *
  33. * @return void
  34. */
  35. public function clean();
  36. }