Completed
Push — master ( caad37...82c5ce )
by Dmitriy
06:13
created

DeliveryOption::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Market\Partner\Models\DatesRange;
6
use Yandex\Market\Partner\Models\Outlets;
7
use Yandex\Common\Model;
8
9
class DeliveryOption extends Model
10
{
11
12
    protected $id = null;
13
14
    protected $type = null;
15
16
    protected $serviceName = null;
17
18
    protected $price = null;
19
20
    protected $dates = null;
21
22
    protected $outlets = null;
23
24
    protected $mappingClasses = [
25
        'dates' => 'Yandex\Market\Partner\Models\DatesRange',
26
        'outlets' => 'Yandex\Market\Partner\Models\Outlets'
27
    ];
28
29
    protected $propNameMap = [];
30
31
    /**
32
     * Retrieve the id property
33
     *
34
     * @return string|null
35
     */
36
    public function getId()
37
    {
38
        return $this->id;
39
    }
40
41
    /**
42
     * Set the id property
43
     *
44
     * @param string $id
45
     * @return $this
46
     */
47
    public function setId($id)
48
    {
49
        $this->id = $id;
50
        return $this;
51
    }
52
53
    /**
54
     * Retrieve the type property
55
     *
56
     * @return string|null
57
     */
58
    public function getType()
59
    {
60
        return $this->type;
61
    }
62
63
    /**
64
     * Set the type property
65
     *
66
     * @param string $type
67
     * @return $this
68
     */
69
    public function setType($type)
70
    {
71
        $this->type = $type;
72
        return $this;
73
    }
74
75
    /**
76
     * Retrieve the serviceName property
77
     *
78
     * @return string|null
79
     */
80
    public function getServiceName()
81
    {
82
        return $this->serviceName;
83
    }
84
85
    /**
86
     * Set the serviceName property
87
     *
88
     * @param string $serviceName
89
     * @return $this
90
     */
91
    public function setServiceName($serviceName)
92
    {
93
        $this->serviceName = $serviceName;
94
        return $this;
95
    }
96
97
    /**
98
     * Retrieve the price property
99
     *
100
     * @return int|null
101
     */
102
    public function getPrice()
103
    {
104
        return $this->price;
105
    }
106
107
    /**
108
     * Set the price property
109
     *
110
     * @param int $price
111
     * @return $this
112
     */
113
    public function setPrice($price)
114
    {
115
        $this->price = $price;
116
        return $this;
117
    }
118
119
    /**
120
     * Retrieve the dates property
121
     *
122
     * @return DatesRange|null
123
     */
124
    public function getDates()
125
    {
126
        return $this->dates;
127
    }
128
129
    /**
130
     * Set the dates property
131
     *
132
     * @param DatesRange $dates
133
     * @return $this
134
     */
135
    public function setDates($dates)
136
    {
137
        $this->dates = $dates;
138
        return $this;
139
    }
140
141
    /**
142
     * Retrieve the outlets property
143
     *
144
     * @return Outlets|null
145
     */
146
    public function getOutlets()
147
    {
148
        return $this->outlets;
149
    }
150
151
    /**
152
     * Set the outlets property
153
     *
154
     * @param Outlets $outlets
155
     * @return $this
156
     */
157
    public function setOutlets($outlets)
158
    {
159
        $this->outlets = $outlets;
160
        return $this;
161
    }
162
}
163