Passed
Pull Request — develop (#166)
by Laurent
01:46
created

Contact::getAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the G.L.S.R. Apps package.
7
 *
8
 * (c) Dev-Int Création <[email protected]>.
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Administration\Infrastructure\Persistence\DoctrineOrm\Entities;
15
16
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
Bug introduced by
The type Doctrine\ORM\Mapping was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
18
/**
19
 * @ORM\MappedSuperclass
20
 */
21
class Contact
22
{
23
    /**
24
     * @ORM\Id
25
     * @ORM\Column(type="guid")
26
     * @ORM\GeneratedValue(strategy="NONE")
27
     */
28
    protected string $uuid;
29
30
    /**
31
     * @ORM\Column(type="string", unique=true, nullable=false)
32
     */
33
    protected string $name;
34
35
    /**
36
     * @ORM\Column(type="string", nullable=false)
37
     */
38
    protected string $address;
39
40
    /**
41
     * @ORM\Column(type="string", nullable=false)
42
     */
43
    protected string $zipCode;
44
45
    /**
46
     * @ORM\Column(type="string", nullable=false)
47
     */
48
    protected string $town;
49
50
    /**
51
     * @ORM\Column(type="string", nullable=false)
52
     */
53
    protected string $country;
54
55
    /**
56
     * @ORM\Column(type="string", nullable=false)
57
     */
58
    protected string $phone;
59
60
    /**
61
     * @ORM\Column(type="string", nullable=true)
62
     */
63
    protected string $facsimile;
64
65
    /**
66
     * @ORM\Column(type="string", nullable=false)
67
     */
68
    protected string $email;
69
70
    /**
71
     * @ORM\Column(type="string", nullable=false)
72
     */
73
    protected string $contact;
74
75
    /**
76
     * @ORM\Column(type="string", nullable=false)
77
     */
78
    protected string $cellphone;
79
80
    /**
81
     * @ORM\Column(type="string", unique=true, nullable=false)
82
     */
83
    protected string $slug;
84
85
    public function __construct(
86
        string $uuid,
87
        string $name,
88
        string $address,
89
        string $zipCode,
90
        string $town,
91
        string $country,
92
        string $phone,
93
        string $facsimile,
94
        string $email,
95
        string $contact,
96
        string $cellphone,
97
        string $slug
98
    ) {
99
        $this->uuid = $uuid;
100
        $this->name = $name;
101
        $this->address = $address;
102
        $this->zipCode = $zipCode;
103
        $this->town = $town;
104
        $this->country = $country;
105
        $this->phone = $phone;
106
        $this->facsimile = $facsimile;
107
        $this->email = $email;
108
        $this->contact = $contact;
109
        $this->cellphone = $cellphone;
110
        $this->slug = $slug;
111
    }
112
113
    public function getUuid(): string
114
    {
115
        return $this->uuid;
116
    }
117
118
    public function setUuid(string $uuid): self
119
    {
120
        $this->uuid = $uuid;
121
122
        return $this;
123
    }
124
125
    public function getName(): string
126
    {
127
        return $this->name;
128
    }
129
130
    public function setName(string $name): self
131
    {
132
        $this->name = $name;
133
134
        return $this;
135
    }
136
137
    public function getAddress(): string
138
    {
139
        return $this->address;
140
    }
141
142
    public function setAddress(string $address): self
143
    {
144
        $this->address = $address;
145
146
        return $this;
147
    }
148
149
    public function getZipCode(): string
150
    {
151
        return $this->zipCode;
152
    }
153
154
    public function setZipCode(string $zipCode): self
155
    {
156
        $this->zipCode = $zipCode;
157
158
        return $this;
159
    }
160
161
    public function getTown(): string
162
    {
163
        return $this->town;
164
    }
165
166
    public function setTown(string $town): self
167
    {
168
        $this->town = $town;
169
170
        return $this;
171
    }
172
173
    public function getCountry(): string
174
    {
175
        return $this->country;
176
    }
177
178
    public function setCountry(string $country): self
179
    {
180
        $this->country = $country;
181
182
        return $this;
183
    }
184
185
    public function getPhone(): string
186
    {
187
        return $this->phone;
188
    }
189
190
    public function setPhone(string $phone): self
191
    {
192
        $this->phone = $phone;
193
194
        return $this;
195
    }
196
197
    public function getFacsimile(): string
198
    {
199
        return $this->facsimile;
200
    }
201
202
    public function setFacsimile(string $facsimile): self
203
    {
204
        $this->facsimile = $facsimile;
205
206
        return $this;
207
    }
208
209
    public function getEmail(): string
210
    {
211
        return $this->email;
212
    }
213
214
    public function setEmail(string $email): self
215
    {
216
        $this->email = $email;
217
218
        return $this;
219
    }
220
221
    public function getContact(): string
222
    {
223
        return $this->contact;
224
    }
225
226
    public function setContact(string $contact): self
227
    {
228
        $this->contact = $contact;
229
230
        return $this;
231
    }
232
233
    public function getCellphone(): string
234
    {
235
        return $this->cellphone;
236
    }
237
238
    public function setCellphone(string $cellphone): self
239
    {
240
        $this->cellphone = $cellphone;
241
242
        return $this;
243
    }
244
245
    public function getSlug(): string
246
    {
247
        return $this->slug;
248
    }
249
250
    public function setSlug(string $slug): self
251
    {
252
        $this->slug = $slug;
253
254
        return $this;
255
    }
256
}
257