GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( bca039...62b974 )
by Luis Ramón
03:29
created

Company   A

Complexity

Total Complexity 17

Size/Duplication

Total Lines 260
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 17
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 260
rs 10

14 Methods

Rating   Name   Duplication   Size   Complexity  
A setAddress() 0 6 1
A getAddress() 0 4 1
A setCity() 0 6 1
A getCity() 0 4 1
A setProvince() 0 6 1
A getProvince() 0 4 1
A setZipCode() 0 6 1
A getZipCode() 0 4 1
A setPhoneNumber() 0 6 1
A getPhoneNumber() 0 4 1
A setEmail() 0 6 1
A getEmail() 0 4 1
A setManager() 0 6 1
A getManager() 0 4 1
1
<?php
2
/*
3
  ÁTICA - Aplicación web para la gestión documental de centros educativos
4
5
  Copyright (C) 2015-2016: Luis Ramón López López
6
7
  This program is free software: you can redistribute it and/or modify
8
  it under the terms of the GNU Affero General Public License as published by
9
  the Free Software Foundation, either version 3 of the License, or
10
  (at your option) any later version.
11
12
  This program is distributed in the hope that it will be useful,
13
  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
  GNU Affero General Public License for more details.
16
17
  You should have received a copy of the GNU Affero General Public License
18
  along with this program.  If not, see [http://www.gnu.org/licenses/].
19
*/
20
21
namespace AppBundle\Entity;
22
23
use Doctrine\ORM\Mapping as ORM;
24
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
25
26
/**
27
 * @ORM\Entity
28
 * @UniqueEntity(fields={"code"})
29
 */
30
class Company
31
{
32
    /**
33
     * @ORM\Id
34
     * @ORM\Column(type="integer")
35
     * @ORM\GeneratedValue
36
     * @var int
37
     */
38
    protected $id;
39
40
    /**
41
     * @ORM\Column(type="string")
42
     * @var string
43
     */
44
    protected $code;
45
46
    /**
47
     * @ORM\Column(type="string")
48
     * @var string
49
     */
50
    protected $address;
51
52
    /**
53
     * @ORM\Column(type="string")
54
     * @var string
55
     */
56
    protected $city;
57
58
    /**
59
     * @ORM\Column(type="string")
60
     * @var string
61
     */
62
    protected $province;
63
64
    /**
65
     * @ORM\Column(type="string")
66
     * @var string
67
     */
68
    protected $zipCode;
69
70
    /**
71
     * @ORM\Column(type="string", nullable=true)
72
     * @var string
73
     */
74
    protected $phoneNumber;
75
76
    /**
77
     * @ORM\Column(type="string", nullable=true)
78
     * @var string
79
     */
80
    protected $email;
81
82
    /**
83
     * @ORM\ManyToOne(targetEntity="Person")
84
     * @ORM\JoinColumn(nullable=false)
85
     */
86
    protected $manager;
87
88
    /**
89
     * Get id
90
     *
91
     * @return integer
92
     */
93
    public function getId()
94
    {
95
        return $this->id;
96
    }
97
98
    /**
99
     * Set code
100
     *
101
     * @param string $code
102
     *
103
     * @return Company
104
     */
105
    public function setCode($code)
106
    {
107
        $this->code = $code;
108
109
        return $this;
110
    }
111
112
    /**
113
     * Get code
114
     *
115
     * @return string
116
     */
117
    public function getCode()
118
    {
119
        return $this->code;
120
    }
121
122
    /**
123
     * Set address
124
     *
125
     * @param string $address
126
     *
127
     * @return Company
128
     */
129
    public function setAddress($address)
130
    {
131
        $this->address = $address;
132
133
        return $this;
134
    }
135
136
    /**
137
     * Get address
138
     *
139
     * @return string
140
     */
141
    public function getAddress()
142
    {
143
        return $this->address;
144
    }
145
146
    /**
147
     * Set city
148
     *
149
     * @param string $city
150
     *
151
     * @return Company
152
     */
153
    public function setCity($city)
154
    {
155
        $this->city = $city;
156
157
        return $this;
158
    }
159
160
    /**
161
     * Get city
162
     *
163
     * @return string
164
     */
165
    public function getCity()
166
    {
167
        return $this->city;
168
    }
169
170
    /**
171
     * Set province
172
     *
173
     * @param string $province
174
     *
175
     * @return Company
176
     */
177
    public function setProvince($province)
178
    {
179
        $this->province = $province;
180
181
        return $this;
182
    }
183
184
    /**
185
     * Get province
186
     *
187
     * @return string
188
     */
189
    public function getProvince()
190
    {
191
        return $this->province;
192
    }
193
194
    /**
195
     * Set zipCode
196
     *
197
     * @param string $zipCode
198
     *
199
     * @return Company
200
     */
201
    public function setZipCode($zipCode)
202
    {
203
        $this->zipCode = $zipCode;
204
205
        return $this;
206
    }
207
208
    /**
209
     * Get zipCode
210
     *
211
     * @return string
212
     */
213
    public function getZipCode()
214
    {
215
        return $this->zipCode;
216
    }
217
218
    /**
219
     * Set phoneNumber
220
     *
221
     * @param string $phoneNumber
222
     *
223
     * @return Company
224
     */
225
    public function setPhoneNumber($phoneNumber)
226
    {
227
        $this->phoneNumber = $phoneNumber;
228
229
        return $this;
230
    }
231
232
    /**
233
     * Get phoneNumber
234
     *
235
     * @return string
236
     */
237
    public function getPhoneNumber()
238
    {
239
        return $this->phoneNumber;
240
    }
241
242
    /**
243
     * Set email
244
     *
245
     * @param string $email
246
     *
247
     * @return Company
248
     */
249
    public function setEmail($email)
250
    {
251
        $this->email = $email;
252
253
        return $this;
254
    }
255
256
    /**
257
     * Get email
258
     *
259
     * @return string
260
     */
261
    public function getEmail()
262
    {
263
        return $this->email;
264
    }
265
266
    /**
267
     * Set manager
268
     *
269
     * @param Person $manager
270
     *
271
     * @return Company
272
     */
273
    public function setManager(Person $manager)
274
    {
275
        $this->manager = $manager;
276
277
        return $this;
278
    }
279
280
    /**
281
     * Get manager
282
     *
283
     * @return Person
284
     */
285
    public function getManager()
286
    {
287
        return $this->manager;
288
    }
289
}
290