| 1 |
<?php |
| 2 |
/** |
| 3 |
* Class PacketsLabelsPdf |
| 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 PacketsLabelsPdf |
| 14 |
* |
| 15 |
* @package Packetery\Api\Soap\Request |
| 16 |
*/ |
| 17 |
class PacketsLabelsPdf { |
| 18 |
|
| 19 |
/** |
| 20 |
* Packet ids. |
| 21 |
* |
| 22 |
* @var string[] |
| 23 |
*/ |
| 24 |
private $packetIds; |
| 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 string[] $packetIds Packet ids. |
| 44 |
* @param string $labelFormat Label format. |
| 45 |
* @param int $offset Offset. |
| 46 |
*/ |
| 47 |
public function __construct( array $packetIds, string $labelFormat, int $offset ) { |
| 48 |
$this->packetIds = $packetIds; |
| 49 |
$this->labelFormat = $labelFormat; |
| 50 |
$this->offset = $offset; |
| 51 |
} |
| 52 |
|
| 53 |
/** |
| 54 |
* Gets packet ids. |
| 55 |
* |
| 56 |
* @return array |
| 57 |
*/ |
| 58 |
public function getPacketIds(): array { |
| 59 |
return $this->packetIds; |
| 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 |
|