PluginProbe
Packeta / 1.4
Packeta v1.4
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Core / Api / Soap / Request / CreateShipment.php

CreateShipment.php in Packeta 1.4, at src/Packetery/Core/Api/Soap/Request/CreateShipment.php

69 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class CreateShipment
4 *
5 * @package Packetery\Core\Api\Soap\Request
6 */
7
8 declare( strict_types=1 );
9
10 namespace Packetery\Core\Api\Soap\Request;
11
12 /**
13 * Class CreateShipment
14 *
15 * @package Packetery\Core\Api\Soap\Request
16 */
17 class CreateShipment {
18
19 /**
20 * Packet IDs.
21 *
22 * @var string[]
23 */
24 private $packetIds;
25
26 /**
27 * Custom barcode.
28 *
29 * @var string|null
30 */
31 private $customBarcode;
32
33 /**
34 * CreateShipment constructor.
35 *
36 * @param string[] $packetIds Packet IDs.
37 */
38 public function __construct( array $packetIds ) {
39 $this->packetIds = $packetIds;
40 }
41
42 /**
43 * Gets packet IDs.
44 *
45 * @return string[]
46 */
47 public function getPacketIds(): array {
48 return $this->packetIds;
49 }
50
51 /**
52 * Gets custom barcode.
53 *
54 * @return string|null
55 */
56 public function getCustomBarcode(): ?string {
57 return $this->customBarcode;
58 }
59
60 /**
61 * Sets custom barcode.
62 *
63 * @param string|null $customBarcode Custom barcode.
64 */
65 public function setCustomBarcode( ?string $customBarcode ): void {
66 $this->customBarcode = $customBarcode;
67 }
68 }
69