| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class SendToDeliveryBasketRequest extends AbstractRequest implements RequestInterface |
||
| 17 | { |
||
| 18 | public const RESPONSE_CLASS = SendToDeliveryResponse::class; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Контейнер, который содержит штрих-коды заказов. |
||
| 22 | * По-умолчанию все переданные заказы за сегодня (не обязательный элемент) |
||
| 23 | * |
||
| 24 | * @JMS\XmlList(inline = true, entry = "barcode") |
||
| 25 | */ |
||
| 26 | private ?array $barcodes = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return array|null |
||
| 30 | */ |
||
| 31 | 2 | public function getBarcodes(): ?array |
|
| 32 | { |
||
| 33 | 2 | return $this->barcodes; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param array|null $barcodes |
||
| 38 | * |
||
| 39 | * @return SendToDeliveryBasketRequest |
||
| 40 | */ |
||
| 41 | 1 | public function setBarcodes(?array $barcodes): SendToDeliveryBasketRequest |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $barcode |
||
| 49 | * |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | 2 | public function addBarcode(string $barcode): SendToDeliveryBasketRequest |
|
| 64 |