AllSoapAndRestInterface.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestModule1\Service\V1;
  7. use Magento\TestModule1\Service\V1\Entity\Item;
  8. interface AllSoapAndRestInterface
  9. {
  10. /**
  11. * @param int $itemId
  12. * @return \Magento\TestModule1\Service\V1\Entity\Item
  13. */
  14. public function item($itemId);
  15. /**
  16. * @param string $name
  17. * @return \Magento\TestModule1\Service\V1\Entity\Item
  18. */
  19. public function create($name);
  20. /**
  21. * @param \Magento\TestModule1\Service\V1\Entity\Item $entityItem
  22. * @return \Magento\TestModule1\Service\V1\Entity\Item
  23. */
  24. public function update(Item $entityItem);
  25. /**
  26. * @return \Magento\TestModule1\Service\V1\Entity\Item[]
  27. */
  28. public function items();
  29. /**
  30. * @param string $name
  31. * @return \Magento\TestModule1\Service\V1\Entity\Item
  32. */
  33. public function testOptionalParam($name = null);
  34. /**
  35. * @param \Magento\TestModule1\Service\V1\Entity\Item $entityItem
  36. * @return \Magento\TestModule1\Service\V1\Entity\Item
  37. */
  38. public function itemAnyType(Item $entityItem);
  39. /**
  40. * @return \Magento\TestModule1\Service\V1\Entity\Item
  41. */
  42. public function getPreconfiguredItem();
  43. }