Completed
Push — master ( 517bde...47329e )
by Bukashk0zzz
01:12
created

ShopInfo::getAutoDiscount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
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;
13
14
/**
15
 * Class ShopInfo
16
 */
17
class ShopInfo
18
{
19
    /**
20
     * @var string
21
     */
22
    private $name;
23
24
    /**
25
     * @var string
26
     */
27
    private $company;
28
29
    /**
30
     * @var string
31
     */
32
    private $url;
33
34
    /**
35
     * @var string
36
     */
37
    private $platform;
38
39
    /**
40
     * @var string
41
     */
42
    private $version;
43
44
    /**
45
     * @var string
46
     */
47
    private $agency;
48
49
    /**
50
     * @var string
51
     */
52
    private $email;
53
54
    /**
55
     * @var bool
56
     */
57
    private $autoDiscount;
58
59
    /**
60
     * @return array
61
     */
62
    public function toArray()
63
    {
64
        return [
65
            'name' => $this->getName(),
66
            'company' => $this->getCompany(),
67
            'url' => $this->getUrl(),
68
            'platform' => $this->getPlatform(),
69
            'version' => $this->getVersion(),
70
            'agency' => $this->getAgency(),
71
            'email' => $this->getEmail(),
72
            'enable_auto_discounts' => $this->getAutoDiscount(),
73
        ];
74
    }
75
76
    /**
77
     * @return string
78
     */
79
    public function getName()
80
    {
81
        return $this->name;
82
    }
83
84
    /**
85
     * @param string $name
86
     *
87
     * @return ShopInfo
88
     */
89
    public function setName($name)
90
    {
91
        $this->name = $name;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getCompany()
100
    {
101
        return $this->company;
102
    }
103
104
    /**
105
     * @param string $company
106
     *
107
     * @return ShopInfo
108
     */
109
    public function setCompany($company)
110
    {
111
        $this->company = $company;
112
113
        return $this;
114
    }
115
116
    /**
117
     * @return string
118
     */
119
    public function getUrl()
120
    {
121
        return $this->url;
122
    }
123
124
    /**
125
     * @param string $url
126
     *
127
     * @return ShopInfo
128
     */
129
    public function setUrl($url)
130
    {
131
        $this->url = $url;
132
133
        return $this;
134
    }
135
136
    /**
137
     * @return string
138
     */
139
    public function getPlatform()
140
    {
141
        return $this->platform;
142
    }
143
144
    /**
145
     * @param string $platform
146
     *
147
     * @return ShopInfo
148
     */
149
    public function setPlatform($platform)
150
    {
151
        $this->platform = $platform;
152
153
        return $this;
154
    }
155
156
    /**
157
     * @return string
158
     */
159
    public function getVersion()
160
    {
161
        return $this->version;
162
    }
163
164
    /**
165
     * @param string $version
166
     *
167
     * @return ShopInfo
168
     */
169
    public function setVersion($version)
170
    {
171
        $this->version = $version;
172
173
        return $this;
174
    }
175
176
    /**
177
     * @return string
178
     */
179
    public function getAgency()
180
    {
181
        return $this->agency;
182
    }
183
184
    /**
185
     * @param string $agency
186
     *
187
     * @return ShopInfo
188
     */
189
    public function setAgency($agency)
190
    {
191
        $this->agency = $agency;
192
193
        return $this;
194
    }
195
196
    /**
197
     * @return string
198
     */
199
    public function getEmail()
200
    {
201
        return $this->email;
202
    }
203
204
    /**
205
     * @param string $email
206
     *
207
     * @return ShopInfo
208
     */
209
    public function setEmail($email)
210
    {
211
        $this->email = $email;
212
213
        return $this;
214
    }
215
216
    /**
217
     * @return bool
218
     */
219
    public function getAutoDiscount()
220
    {
221
        return $this->autoDiscount;
222
    }
223
224
    /**
225
     * @param bool $autoDiscount
226
     *
227
     * @return ShopInfo
228
     */
229
    public function setAutoDiscount($autoDiscount)
230
    {
231
        $this->autoDiscount = $autoDiscount;
232
233
        return $this;
234
    }
235
}
236