1 | <?php |
||
17 | class ShippingExport implements ShippingExportInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $id; |
||
23 | |||
24 | /** |
||
25 | * @var ShipmentInterface |
||
26 | */ |
||
27 | protected $shipment; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $externalId; |
||
33 | |||
34 | /** |
||
35 | * @var ShippingGatewayInterface |
||
36 | */ |
||
37 | protected $shippingGateway; |
||
38 | |||
39 | /** |
||
40 | * @var \DateTime |
||
41 | */ |
||
42 | protected $exportedAt; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $labelPath; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $state = ShippingExportInterface::STATE_NEW; |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getId(): int |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getShipment(): ?ShipmentInterface |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function setShipment(?ShipmentInterface $shipment): void |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function getExternalId(): ?string |
||
82 | { |
||
83 | return $this->externalId; |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function setExternalId(?string $externalId): void |
||
90 | { |
||
91 | $this->externalId = $externalId; |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function getShippingGateway(): ?ShippingGatewayInterface |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function setShippingGateway(?ShippingGatewayInterface $shippingGateway): void |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function getExportedAt(): ?\DateTime |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function setExportedAt(?\DateTime $exportedAt): void |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function getState(): ?string |
||
133 | |||
134 | /** |
||
135 | * {@inheritdoc} |
||
136 | */ |
||
137 | public function setState(?string $state): void |
||
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | public function getLabelPath(): ?string |
||
149 | |||
150 | /** |
||
151 | * {@inheritdoc} |
||
152 | */ |
||
153 | public function setLabelPath(?string $labelPath): void |
||
157 | } |
||
158 |