Passed
Push — main ( 6bf038...55787e )
by Aleksandr
08:10
created

SendToDeliveryBasketRequest::getBarcodes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Requests;
6
7
use DalliSDK\Responses\SendToDeliveryResponse;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Запрос на добавление заказов из корзины в акт
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/sendbasket
14
 * @JMS\XmlRoot("sendbasket")
15
 */
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 1
    public function getBarcodes(): ?array
32
    {
33 1
        return $this->barcodes;
34
    }
35
36
    /**
37
     * @param array|null $barcodes
38
     *
39
     * @return SendToDeliveryBasketRequest
40
     */
41 1
    public function setBarcodes(?array $barcodes): SendToDeliveryBasketRequest
42
    {
43 1
        $this->barcodes = $barcodes;
44 1
        return $this;
45
    }
46
}
47