Passed
Push — main ( 6bf038...578b82 )
by Aleksandr
03:45 queued 32s
created

Package::getHeight()   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
 * По умолчанию, данная опция недоступна
14
 *
15
 * @see https://api.dalli-service.com/v1/doc/createbasket
16
 * @JMS\XmlRoot("package")
17
 */
18
class Package
19
{
20
    use Fillable;
21
22
    /**
23
     * Штрих-код места (обязательный параметр)
24
     *
25
     * @JMS\XmlAttribute()
26
     * @JMS\Type("string")
27
     * @JMS\SerializedName("strbarcode")
28
     */
29
    private ?string $strBarCode;
30
31
    /**
32
     * Масса места в кг(необязательный)
33
     *
34
     * @JMS\XmlAttribute()
35
     * @JMS\Type("float")
36
     */
37
    private ?float $mass = null;
38
39
    /**
40
     * Название места (необязательный)
41
     *
42
     * @JMS\XmlAttribute()
43
     * @JMS\Type("string")
44
     */
45
    private ?string $message = null;
46
47
    /**
48
     * Длина в см (необязательный)
49
     *
50
     * @JMS\XmlAttribute()
51
     * @JMS\Type("float")
52
     */
53
    private ?float $length = null;
54
55
    /**
56
     * Ширина в см (необязательный)
57
     *
58
     * @JMS\XmlAttribute()
59
     * @JMS\Type("float")
60
     */
61
    private ?float $width = null;
62
63
    /**
64
     * Высота в см (необязательный)
65
     *
66
     * @JMS\XmlAttribute()
67
     * @JMS\Type("float")
68
     */
69
    private ?float $height = null;
70
71
    /**
72
     * @return string|null
73
     */
74 3
    public function getStrBarCode(): ?string
75
    {
76 3
        return $this->strBarCode;
77
    }
78
79
    /**
80
     * @return float|null
81
     */
82 3
    public function getMass(): ?float
83
    {
84 3
        return $this->mass;
85
    }
86
87
    /**
88
     * @return string|null
89
     */
90 3
    public function getMessage(): ?string
91
    {
92 3
        return $this->message;
93
    }
94
95
    /**
96
     * @return float|null
97
     */
98 3
    public function getLength(): ?float
99
    {
100 3
        return $this->length;
101
    }
102
103
    /**
104
     * @return float|null
105
     */
106 3
    public function getWidth(): ?float
107
    {
108 3
        return $this->width;
109
    }
110
111
    /**
112
     * @return float|null
113
     */
114 3
    public function getHeight(): ?float
115
    {
116 3
        return $this->height;
117
    }
118
}
119