DeliverTo.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\Response\Fields\Order;
  6. /**
  7. * Temando API Order Deliver To Field
  8. *
  9. * @package Temando\Shipping\Rest
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link https://www.temando.com/
  13. */
  14. class DeliverTo
  15. {
  16. /**
  17. * @var \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Address
  18. */
  19. private $address;
  20. /**
  21. * @var \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Contact
  22. */
  23. private $contact;
  24. /**
  25. * @var string[]
  26. */
  27. private $options = [];
  28. /**
  29. * @return \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Address
  30. */
  31. public function getAddress()
  32. {
  33. return $this->address;
  34. }
  35. /**
  36. * @param \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Address $address
  37. * @return void
  38. */
  39. public function setAddress(\Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Address $address)
  40. {
  41. $this->address = $address;
  42. }
  43. /**
  44. * @return \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Contact
  45. */
  46. public function getContact()
  47. {
  48. return $this->contact;
  49. }
  50. /**
  51. * @param \Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Contact $contact
  52. * @return void
  53. */
  54. public function setContact(\Temando\Shipping\Rest\Response\Fields\Order\DeliverTo\Contact $contact)
  55. {
  56. $this->contact = $contact;
  57. }
  58. /**
  59. * @return string[]
  60. */
  61. public function getOptions()
  62. {
  63. return $this->options;
  64. }
  65. /**
  66. * @param string[] $options
  67. * @return void
  68. */
  69. public function setOptions(array $options)
  70. {
  71. $this->options = $options;
  72. }
  73. }