PluginProbe
Packeta / 2.3.1
Packeta v2.3.1
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 / PacketsCourierLabelsPdf.php

PacketsCourierLabelsPdf.php in Packeta 2.3.1, at src/Packetery/Core/Api/Soap/Request/PacketsCourierLabelsPdf.php

80 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class PacketsCourierLabelsPdf
4 *
5 * @package Packetery\Api\Soap\Request
6 */
7
8 declare( strict_types=1 );
9
10 namespace Packetery\Core\Api\Soap\Request;
11
12 /**
13 * Class PacketsCourierLabelsPdf
14 *
15 * @package Packetery\Api\Soap\Request
16 */
17 class PacketsCourierLabelsPdf {
18
19 /**
20 * Packet id and carrier number pairs.
21 *
22 * @var array<array<string, string>>
23 */
24 private $packetIdsWithCourierNumbers;
25
26 /**
27 * Label format.
28 *
29 * @var string
30 */
31 private $labelFormat;
32
33 /**
34 * Offset.
35 *
36 * @var int
37 */
38 private $offset;
39
40 /**
41 * PacketsLabelsPdf constructor.
42 *
43 * @param array<array<string, string>> $packetIdsWithCourierNumbers Packet ids.
44 * @param string $labelFormat Label format.
45 * @param int $offset Offset.
46 */
47 public function __construct( array $packetIdsWithCourierNumbers, string $labelFormat, int $offset ) {
48 $this->packetIdsWithCourierNumbers = $packetIdsWithCourierNumbers;
49 $this->labelFormat = $labelFormat;
50 $this->offset = $offset;
51 }
52
53 /**
54 * Gets packet ids.
55 *
56 * @return array<array<string, string>>
57 */
58 public function getPacketIdsWithCourierNumbers(): array {
59 return $this->packetIdsWithCourierNumbers;
60 }
61
62 /**
63 * Gets label format.
64 *
65 * @return string
66 */
67 public function getFormat(): string {
68 return $this->labelFormat;
69 }
70
71 /**
72 * Gets offset.
73 *
74 * @return int
75 */
76 public function getOffset(): int {
77 return $this->offset;
78 }
79 }
80