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

OfferAudiobook::setPerformedBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
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
 * Class OfferAudiobook
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
class OfferAudiobook extends AbstractOffer
20
{
21
    use OfferBookTrait;
22
23
    /**
24
     * @var string
25
     */
26
    private $performedBy;
27
28
    /**
29
     * @var string
30
     */
31
    private $performanceType;
32
33
    /**
34
     * @var string
35
     */
36
    private $format;
37
38
    /**
39
     * @var string
40
     */
41
    private $storage;
42
43
    /**
44
     * @var string
45
     */
46
    private $recordingLength;
47
48
    /**
49
     * @return string
50
     */
51
    public function getType()
52
    {
53
        return 'audiobook';
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getPerformedBy()
60
    {
61
        return $this->performedBy;
62
    }
63
64
    /**
65
     * @param string $performedBy
66
     * @return $this
67
     */
68
    public function setPerformedBy($performedBy)
69
    {
70
        $this->performedBy = $performedBy;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getPerformanceType()
79
    {
80
        return $this->performanceType;
81
    }
82
83
    /**
84
     * @param string $performanceType
85
     * @return $this
86
     */
87
    public function setPerformanceType($performanceType)
88
    {
89
        $this->performanceType = $performanceType;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @return string
96
     */
97
    public function getFormat()
98
    {
99
        return $this->format;
100
    }
101
102
    /**
103
     * @param string $format
104
     * @return $this
105
     */
106
    public function setFormat($format)
107
    {
108
        $this->format = $format;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getStorage()
117
    {
118
        return $this->storage;
119
    }
120
121
    /**
122
     * @param string $storage
123
     * @return $this
124
     */
125
    public function setStorage($storage)
126
    {
127
        $this->storage = $storage;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @return string
134
     */
135
    public function getRecordingLength()
136
    {
137
        return $this->recordingLength;
138
    }
139
140
    /**
141
     * @param string $recordingLength
142
     * @return $this
143
     */
144
    public function setRecordingLength($recordingLength)
145
    {
146
        $this->recordingLength = $recordingLength;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return array
153
     */
154
    protected function getOptions()
155
    {
156
        return [
157
            'author' => $this->getAuthor(),
158
            'name' => $this->getName(),
159
            'publisher' => $this->getPublisher(),
160
            'series' => $this->getSeries(),
161
            'year' => $this->getYear(),
162
            'ISBN' => $this->getISBN(),
163
            'volume' => $this->getVolume(),
164
            'part' => $this->getPart(),
165
            'language' => $this->getLanguage(),
166
            'table_of_contents' => $this->getTableOfContents(),
167
            'performed_by' => $this->getPerformedBy(),
168
            'performance_type' => $this->getPerformanceType(),
169
            'storage' => $this->getStorage(),
170
            'format' => $this->getFormat(),
171
            'recording_length' => $this->getRecordingLength(),
172
        ];
173
    }
174
}
175