Completed
Push — master ( 175f05...5ac193 )
by Bukashk0zzz
04:34
created

OfferBookTrait::setYear()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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
 * Trait OfferBook
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
trait OfferBookTrait
20
{
21
    /**
22
     * @var string
23
     */
24
    private $author;
25
26
    /**
27
     * @var string
28
     */
29
    private $name;
30
31
    /**
32
     * @var string
33
     */
34
    private $publisher;
35
36
    /**
37
     * @var string
38
     */
39
    private $series;
40
41
    /**
42
     * @var int
43
     */
44
    private $year;
45
46
    /**
47
     * @var string
48
     */
49
    private $ISBN;
50
51
    /**
52
     * @var int
53
     */
54
    private $volume;
55
56
    /**
57
     * @var int
58
     */
59
    private $part;
60
61
    /**
62
     * @var string
63
     */
64
    private $language;
65
66
    /**
67
     * @var string
68
     */
69
    private $tableOfContents;
70
71
    /**
72
     * @return string
73
     */
74
    public function getAuthor()
75
    {
76
        return $this->author;
77
    }
78
79
    /**
80
     * @param string $author
81
     * @return $this
82
     */
83
    public function setAuthor($author)
84
    {
85
        $this->author = $author;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getName()
94
    {
95
        return $this->name;
96
    }
97
98
    /**
99
     * @param string $name
100
     * @return $this
101
     */
102
    public function setName($name)
103
    {
104
        $this->name = $name;
105
106
        return $this;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getPublisher()
113
    {
114
        return $this->publisher;
115
    }
116
117
    /**
118
     * @param string $publisher
119
     * @return $this
120
     */
121
    public function setPublisher($publisher)
122
    {
123
        $this->publisher = $publisher;
124
125
        return $this;
126
    }
127
128
    /**
129
     * @return string
130
     */
131
    public function getSeries()
132
    {
133
        return $this->series;
134
    }
135
136
    /**
137
     * @param string $series
138
     * @return $this
139
     */
140
    public function setSeries($series)
141
    {
142
        $this->series = $series;
143
144
        return $this;
145
    }
146
147
    /**
148
     * @return int
149
     */
150
    public function getYear()
151
    {
152
        return $this->year;
153
    }
154
155
    /**
156
     * @param int $year
157
     * @return $this
158
     */
159
    public function setYear($year)
160
    {
161
        $this->year = $year;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getISBN()
170
    {
171
        return $this->ISBN;
172
    }
173
174
    /**
175
     * @param string $ISBN
176
     * @return $this
177
     */
178
    public function setISBN($ISBN)
179
    {
180
        $this->ISBN = $ISBN;
181
182
        return $this;
183
    }
184
185
    /**
186
     * @return int
187
     */
188
    public function getVolume()
189
    {
190
        return $this->volume;
191
    }
192
193
    /**
194
     * @param int $volume
195
     * @return $this
196
     */
197
    public function setVolume($volume)
198
    {
199
        $this->volume = $volume;
200
201
        return $this;
202
    }
203
204
    /**
205
     * @return int
206
     */
207
    public function getPart()
208
    {
209
        return $this->part;
210
    }
211
212
    /**
213
     * @param int $part
214
     * @return $this
215
     */
216
    public function setPart($part)
217
    {
218
        $this->part = $part;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @return string
225
     */
226
    public function getLanguage()
227
    {
228
        return $this->language;
229
    }
230
231
    /**
232
     * @param string $language
233
     * @return $this
234
     */
235
    public function setLanguage($language)
236
    {
237
        $this->language = $language;
238
239
        return $this;
240
    }
241
242
    /**
243
     * @return string
244
     */
245
    public function getTableOfContents()
246
    {
247
        return $this->tableOfContents;
248
    }
249
250
    /**
251
     * @param string $tableOfContents
252
     * @return $this
253
     */
254
    public function setTableOfContents($tableOfContents)
255
    {
256
        $this->tableOfContents = $tableOfContents;
257
258
        return $this;
259
    }
260
}
261