NoWebApiXmlInterface.php 912 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 NoWebApiXmlInterface
  9. {
  10. /**
  11. * Get an item.
  12. *
  13. * @param int $id
  14. * @return \Magento\TestModule2\Service\V1\Entity\Item
  15. */
  16. public function item($id);
  17. /**
  18. * Create an item.
  19. *
  20. * @param string $name
  21. * @return \Magento\TestModule2\Service\V1\Entity\Item
  22. */
  23. public function create($name);
  24. /**
  25. * Update an item.
  26. *
  27. * @param \Magento\TestModule2\Service\V1\Entity\Item $item
  28. * @return \Magento\TestModule2\Service\V1\Entity\Item
  29. */
  30. public function update(Item $item);
  31. /**
  32. * Retrieve a list of items.
  33. *
  34. * @return \Magento\TestModule2\Service\V1\Entity\Item[]
  35. */
  36. public function items();
  37. }