ShipmentAdditionalServices::getFixedTimeDelivery()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Service\Shipment;
6
7
use JMS\Serializer\Annotation as Serializer;
8
use VasilDakov\Speedy\Traits\ToArray;
9
10
/**
11
 * Class ShipmentAdditionalServices.
12
 *
13
 * @author Valentin Valkanov <[email protected]>
14
 * @author Vasil Dakov <[email protected]>
15
 * @copyright
16
 *
17
 * @version
18
 *
19
 * @Serializer\AccessType("public_method")
20
 */
21
class ShipmentAdditionalServices
22
{
23
    use ToArray;
0 ignored issues
show
Bug introduced by
The trait VasilDakov\Speedy\Traits\ToArray requires the property $value which is not provided by VasilDakov\Speedy\Servic...pmentAdditionalServices.
Loading history...
24
25
    /**
26
     * @Serializer\Type("array")
27
     */
28
    private ?array $cod = null;
29
30
    /**
31
     * @Serializer\Type("array")
32
     */
33
    private ?array $obpd = null;
34
35
    /**
36
     * @Serializer\Type("array")
37
     */
38
    private ?array $declaredValue = null;
39
40
    /**
41
     * @Serializer\Type("integer")
42
     */
43
    private ?int $fixedTimeDelivery = null;
44
45
    /**
46
     * @Serializer\Type("array")
47
     */
48
    private ?array $returns = null;
49
50
    /**
51
     * @Serializer\Type("integer")
52
     */
53
    private ?int $specialDeliveryId = null;
54
55
    /**
56
     * @Serializer\Type("integer")
57
     */
58
    private ?int $deliveryToFloor = null;
59
60
    public function getCod(): ?array
61
    {
62
        return $this->cod;
63
    }
64
65
    public function setCod(array $cod): void
66
    {
67
        $this->cod = $cod;
68
    }
69
70
    public function getObpd(): ?array
71
    {
72
        return $this->obpd;
73
    }
74
75
    public function setObpd(array $obpd): void
76
    {
77
        $this->obpd = $obpd;
78
    }
79
80
    public function getDeclaredValue(): ?array
81
    {
82
        return $this->declaredValue;
83
    }
84
85 2
    public function setDeclaredValue(array $declaredValue): void
86
    {
87 2
        $this->declaredValue = $declaredValue;
88
    }
89
90
    public function getFixedTimeDelivery(): ?int
91
    {
92
        return $this->fixedTimeDelivery;
93
    }
94
95
    public function setFixedTimeDelivery(int $fixedTimeDelivery): void
96
    {
97
        $this->fixedTimeDelivery = $fixedTimeDelivery;
98
    }
99
100
    public function getReturns(): ?array
101
    {
102
        return $this->returns;
103
    }
104
105 2
    public function setReturns(array $returns): void
106
    {
107 2
        $this->returns = $returns;
108
    }
109
110
    public function getSpecialDeliveryId(): ?int
111
    {
112
        return $this->specialDeliveryId;
113
    }
114
115
    public function setSpecialDeliveryId(int $specialDeliveryId): void
116
    {
117
        $this->specialDeliveryId = $specialDeliveryId;
118
    }
119
120
    public function getDeliveryToFloor(): ?int
121
    {
122
        return $this->deliveryToFloor;
123
    }
124
125
    public function setDeliveryToFloor(int $deliveryToFloor): void
126
    {
127
        $this->deliveryToFloor = $deliveryToFloor;
128
    }
129
}
130