| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class LabelsRequest extends Request implements RequestInterface |
||
| 8 | { |
||
| 9 | private $trackingNumbers = []; |
||
| 10 | |||
| 11 | private $printInfo = []; |
||
| 12 | |||
| 13 | public function __construct(Authentication $authentication, array $trackingNumbers, string $printType, string $printFormat) |
||
| 21 | ]; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function toArray(): array |
||
| 25 | { |
||
| 26 | return array_merge( |
||
| 27 | $this->authentication->toArray(), |
||
| 28 | ['parcels' => $this->getTrackingNumbers(), 'printType' => $this->printInfo['type'], 'printFormat' => $this->printInfo['format']] |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getTrackingNumbers(): string |
||
| 35 | } |
||
| 36 | } |
||
| 37 |