PointerAwareInterface.php 742 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\EntityMapper;
  6. use Magento\Framework\Exception\LocalizedException;
  7. /**
  8. * Map application data object properties to API data JSON pointer
  9. *
  10. * @package Temando\Shipping\Rest
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link https://www.temando.com/
  14. */
  15. interface PointerAwareInterface
  16. {
  17. /**
  18. * Obtain the JSON pointer for a data model.
  19. *
  20. * @param string $property
  21. * @return string
  22. * @throws LocalizedException
  23. */
  24. public function getPath($property);
  25. }