Completed
Push — master ( 0f7b01...b73efb )
by Bukashk0zzz
02:11
created

AbstractOffer::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
13
14
/**
15
 * Abstract Class Offer
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
abstract class AbstractOffer implements OfferInterface
20
{
21
    /**
22
     * @var string
23
     */
24
    private $id;
25
26
    /**
27
     * @var bool
28
     */
29
    private $available;
30
31
    /**
32
     * @var string
33
     */
34
    private $url;
35
36
    /**
37
     * @var float
38
     */
39
    private $price;
40
41
    /**
42
     * @var string
43
     */
44
    private $currencyId;
45
46
    /**
47
     * @var int
48
     */
49
    private $categoryId;
50
51
    /**
52
     * @return array
53
     */
54
    public function getParams()
55
    {
56
        return [];
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getId()
63
    {
64
        return $this->id;
65
    }
66
67
    /**
68
     * @param string $id
69
     * @return $this
70
     */
71
    public function setId($id)
72
    {
73
        $this->id = $id;
74
75
        return $this;
76
    }
77
78
    /**
79
     * @return boolean
80
     */
81
    public function isAvailable()
82
    {
83
        return $this->available;
84
    }
85
86
    /**
87
     * @param boolean $available
88
     * @return $this
89
     */
90
    public function setAvailable($available)
91
    {
92
        $this->available = $available;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getUrl()
101
    {
102
        return $this->url;
103
    }
104
105
    /**
106
     * @param string $url
107
     * @return $this
108
     */
109
    public function setUrl($url)
110
    {
111
        $this->url = $url;
112
113
        return $this;
114
    }
115
116
    /**
117
     * @return float
118
     */
119
    public function getPrice()
120
    {
121
        return $this->price;
122
    }
123
124
    /**
125
     * @param float $price
126
     * @return $this
127
     */
128
    public function setPrice($price)
129
    {
130
        $this->price = $price;
131
132
        return $this;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function getCurrencyId()
139
    {
140
        return $this->currencyId;
141
    }
142
143
    /**
144
     * @param string $currencyId
145
     * @return $this
146
     */
147
    public function setCurrencyId($currencyId)
148
    {
149
        $this->currencyId = $currencyId;
150
151
        return $this;
152
    }
153
154
    /**
155
     * @return int
156
     */
157
    public function getCategoryId()
158
    {
159
        return $this->categoryId;
160
    }
161
162
    /**
163
     * @param int $categoryId
164
     * @return $this
165
     */
166
    public function setCategoryId($categoryId)
167
    {
168
        $this->categoryId = $categoryId;
169
170
        return $this;
171
    }
172
}
173