ItemRequest.php 846 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\Request;
  6. /**
  7. * Temando API Get Item Operation
  8. *
  9. * @package Temando\Shipping\Rest
  10. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  11. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link http://www.temando.com/
  13. */
  14. class ItemRequest implements ItemRequestInterface
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $entityId;
  20. /**
  21. * ItemRequest constructor.
  22. * @param string $entityId
  23. */
  24. public function __construct($entityId)
  25. {
  26. $this->entityId = $entityId;
  27. }
  28. /**
  29. * @return string[]
  30. */
  31. public function getPathParams()
  32. {
  33. return [
  34. $this->entityId,
  35. ];
  36. }
  37. }