RemoveBasketRequest::getBarcode()   A
last analyzed

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\RemoveBasketResponse;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Запрос на удаление заказа из корзины
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/removebasket
14
 * @JMS\XmlRoot("removebasket")
15
 */
16
class RemoveBasketRequest extends AbstractRequest implements RequestInterface
17
{
18
    public const RESPONSE_CLASS = RemoveBasketResponse::class;
19
20
    /**
21
     * Штрих-код заказа в системе Dalli
22
     *
23
     * @JMS\Type("string")
24
     * @JMS\SerializedName("barcode")
25
     */
26
    private ?string $barcode = null;
27
28
    /**
29
     * Номер заявки в учетной системе ИМ (обязательный атрибут)
30
     *
31
     * @JMS\Type("string")
32
     * @JMS\SerializedName("number")
33
     */
34
    private ?string $number = null;
35
36
    /**
37
     * @return string|null
38
     */
39 1
    public function getBarcode(): ?string
40
    {
41 1
        return $this->barcode;
42
    }
43
44
    /**
45
     * @param string|null $barcode
46
     *
47
     * @return RemoveBasketRequest
48
     */
49 1
    public function setBarcode(?string $barcode): RemoveBasketRequest
50
    {
51 1
        $this->barcode = $barcode;
52 1
        return $this;
53
    }
54
55
    /**
56
     * @return string|null
57
     */
58 1
    public function getNumber(): ?string
59
    {
60 1
        return $this->number;
61
    }
62
63
    /**
64
     * @param string|null $number
65
     *
66
     * @return RemoveBasketRequest
67
     */
68 1
    public function setNumber(?string $number): RemoveBasketRequest
69
    {
70 1
        $this->number = $number;
71 1
        return $this;
72
    }
73
}
74