LocationInterface.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model;
  6. /**
  7. * Temando Location Interface.
  8. *
  9. * The location data object represents one item in the origin location grid listing.
  10. *
  11. * @package Temando\Shipping\Model
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link http://www.temando.com/
  15. */
  16. interface LocationInterface
  17. {
  18. const LOCATION_ID = 'location_id';
  19. const NAME = 'name';
  20. const UNIQUE_IDENTIFIER = 'unique_identifier';
  21. const TYPE = 'type';
  22. const STREET = 'street';
  23. const POSTAL_CODE = 'postal_code';
  24. const IS_DEFAULT = 'is_default';
  25. /**
  26. * @return string
  27. */
  28. public function getLocationId();
  29. /**
  30. * @return string
  31. */
  32. public function getName();
  33. /**
  34. * @return string
  35. */
  36. public function getUniqueIdentifier();
  37. /**
  38. * @return string
  39. */
  40. public function getType();
  41. /**
  42. * @return string[]
  43. */
  44. public function getStreet();
  45. /**
  46. * @return string
  47. */
  48. public function getPostalCode();
  49. /**
  50. * @return bool
  51. */
  52. public function isDefault();
  53. }