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

StickerOrder::getBarcode()   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\Models;
6
7
use DalliSDK\Traits\Fillable;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Модель для ярлыков на заказы
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/stickers
14
 * @JMS\XmlRoot("order")
15
 */
16
class StickerOrder
17
{
18
    use Fillable;
19
20
    /**
21
     * @JMS\Type("string")
22
     * @JMS\SerializedName("barcode")
23
     */
24
    private ?string $barcode;
25
26
    /**
27
     * @JMS\Type("string")
28
     * @JMS\SerializedName("image")
29
     */
30
    private ?string $image;
31
32
    /**
33
     * @JMS\Type("string")
34
     * @JMS\SerializedName("sender")
35
     */
36
    private ?string $sender;
37
38
    /**
39
     * @JMS\Type("string")
40
     * @JMS\SerializedName("id_im")
41
     */
42
    private ?string $idIm;
43
44
    /**
45
     * @JMS\Type("string")
46
     * @JMS\SerializedName("date")
47
     */
48
    private ?string $date;
49
50
    /**
51
     * @JMS\Type("string")
52
     * @JMS\SerializedName("person")
53
     */
54
    private ?string $person;
55
56
    /**
57
     * @JMS\Type("string")
58
     * @JMS\SerializedName("address")
59
     */
60
    private ?string $address;
61
62
    /**
63
     * @return string|null
64
     */
65 2
    public function getBarcode(): ?string
66
    {
67 2
        return $this->barcode;
68
    }
69
70
    /**
71
     * @return string|null
72
     */
73 2
    public function getImage(): ?string
74
    {
75 2
        return $this->image;
76
    }
77
78
    /**
79
     * @return string|null
80
     */
81 2
    public function getSender(): ?string
82
    {
83 2
        return $this->sender;
84
    }
85
86
    /**
87
     * @return string|null
88
     */
89 2
    public function getIdIm(): ?string
90
    {
91 2
        return $this->idIm;
92
    }
93
94
    /**
95
     * @return string|null
96
     */
97 2
    public function getDate(): ?string
98
    {
99 2
        return $this->date;
100
    }
101
102
    /**
103
     * @return string|null
104
     */
105 2
    public function getPerson(): ?string
106
    {
107 2
        return $this->person;
108
    }
109
110
    /**
111
     * @return string|null
112
     */
113 2
    public function getAddress(): ?string
114
    {
115 2
        return $this->address;
116
    }
117
}
118