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

ShopInfo   A

Complexity

Total Complexity 15

Size/Duplication

Total Lines 186
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 15
lcom 1
cbo 0
dl 0
loc 186
rs 10
c 0
b 0
f 0

15 Methods

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