OpeningHours.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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\Location;
  6. /**
  7. * Temando API Location Opening Hours 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 OpeningHours
  15. {
  16. /**
  17. * @var \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours\DefaultOpeningHours[]
  18. */
  19. private $default = [];
  20. /**
  21. * @var \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours\Exceptions
  22. */
  23. private $exceptions;
  24. /**
  25. * @return \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours\DefaultOpeningHours[]
  26. */
  27. public function getDefault()
  28. {
  29. return $this->default;
  30. }
  31. /**
  32. * @param \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours\DefaultOpeningHours[] $default
  33. * @return void
  34. */
  35. public function setDefault(array $default)
  36. {
  37. $this->default = $default;
  38. }
  39. /**
  40. * @return \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours\Exceptions
  41. */
  42. public function getExceptions()
  43. {
  44. return $this->exceptions;
  45. }
  46. /**
  47. * @param \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours\Exceptions $exceptions
  48. */
  49. public function setExceptions($exceptions)
  50. {
  51. $this->exceptions = $exceptions;
  52. }
  53. }