TrackCreation.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Shipment;
  7. use Magento\Sales\Api\Data\ShipmentTrackCreationInterface;
  8. /**
  9. * Class TrackCreation
  10. */
  11. class TrackCreation implements ShipmentTrackCreationInterface
  12. {
  13. /**
  14. * @var string
  15. */
  16. private $trackNumber;
  17. /**
  18. * @var string
  19. */
  20. private $title;
  21. /**
  22. * @var string
  23. */
  24. private $carrierCode;
  25. /**
  26. * @var \Magento\Sales\Api\Data\ShipmentTrackCreationExtensionInterface
  27. */
  28. private $extensionAttributes;
  29. //@codeCoverageIgnoreStart
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function getTrackNumber()
  34. {
  35. return $this->trackNumber;
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function setTrackNumber($trackNumber)
  41. {
  42. $this->trackNumber = $trackNumber;
  43. return $this;
  44. }
  45. /**
  46. * {@inheritdoc}
  47. */
  48. public function getTitle()
  49. {
  50. return $this->title;
  51. }
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function setTitle($title)
  56. {
  57. $this->title = $title;
  58. return $this;
  59. }
  60. /**
  61. * {@inheritdoc}
  62. */
  63. public function getCarrierCode()
  64. {
  65. return $this->carrierCode;
  66. }
  67. /**
  68. * {@inheritdoc}
  69. */
  70. public function setCarrierCode($carrierCode)
  71. {
  72. $this->carrierCode = $carrierCode;
  73. return $this;
  74. }
  75. /**
  76. * {@inheritdoc}
  77. */
  78. public function getExtensionAttributes()
  79. {
  80. return $this->extensionAttributes;
  81. }
  82. /**
  83. * {@inheritdoc}
  84. */
  85. public function setExtensionAttributes(
  86. \Magento\Sales\Api\Data\ShipmentTrackCreationExtensionInterface $extensionAttributes
  87. ) {
  88. $this->extensionAttributes = $extensionAttributes;
  89. return $this;
  90. }
  91. //@codeCoverageIgnoreEnd
  92. }