SubsetRestInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestModule2\Service\V1;
  7. use Magento\TestModule2\Service\V1\Entity\Item;
  8. interface SubsetRestInterface
  9. {
  10. /**
  11. * Return a single item.
  12. *
  13. * @param int $id
  14. * @return \Magento\TestModule2\Service\V1\Entity\Item
  15. */
  16. public function item($id);
  17. /**
  18. * Return multiple items.
  19. *
  20. * @return \Magento\TestModule2\Service\V1\Entity\Item[]
  21. */
  22. public function items();
  23. /**
  24. * Create an item.
  25. *
  26. * @param string $name
  27. * @return \Magento\TestModule2\Service\V1\Entity\Item
  28. */
  29. public function create($name);
  30. /**
  31. * Update an item.
  32. *
  33. * @param \Magento\TestModule2\Service\V1\Entity\Item $item
  34. * @return \Magento\TestModule2\Service\V1\Entity\Item
  35. */
  36. public function update(Item $item);
  37. /**
  38. * Delete an item.
  39. *
  40. * @param int $id
  41. * @return \Magento\TestModule2\Service\V1\Entity\Item
  42. */
  43. public function remove($id);
  44. }