Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
50.00% |
5 / 10 |
|
50.00% |
5 / 10 |
CRAP | |
0.00% |
0 / 1 |
Address | |
50.00% |
5 / 10 |
|
50.00% |
5 / 10 |
22.50 | |
0.00% |
0 / 1 |
getLineOne | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setLineOne | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getLineTwo | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setLineTwo | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getCity | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setCity | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getZipCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setZipCode | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getInsee | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setInsee | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * This file is part of the MADIS - RGPD Management application. |
5 | * |
6 | * @copyright Copyright (c) 2018-2019 Soluris - Solutions Numériques Territoriales Innovantes |
7 | * |
8 | * This program is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU Affero General Public License as published by |
10 | * the Free Software Foundation, either version 3 of the License, or |
11 | * (at your option) any later version. |
12 | * |
13 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * GNU Affero General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Affero General Public License |
19 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | declare(strict_types=1); |
23 | |
24 | namespace App\Domain\User\Model\Embeddable; |
25 | |
26 | class Address |
27 | { |
28 | /** |
29 | * @var string|null |
30 | */ |
31 | private $lineOne; |
32 | |
33 | /** |
34 | * @var string|null |
35 | */ |
36 | private $lineTwo; |
37 | |
38 | /** |
39 | * @var string|null |
40 | */ |
41 | private $city; |
42 | |
43 | /** |
44 | * @var string|null |
45 | */ |
46 | private $zipCode; |
47 | |
48 | /** |
49 | * @var string|null |
50 | */ |
51 | private $insee; |
52 | |
53 | public function getLineOne(): ?string |
54 | { |
55 | return $this->lineOne; |
56 | } |
57 | |
58 | public function setLineOne(?string $lineOne): void |
59 | { |
60 | $this->lineOne = $lineOne; |
61 | } |
62 | |
63 | public function getLineTwo(): ?string |
64 | { |
65 | return $this->lineTwo; |
66 | } |
67 | |
68 | public function setLineTwo(?string $lineTwo): void |
69 | { |
70 | $this->lineTwo = $lineTwo; |
71 | } |
72 | |
73 | public function getCity(): ?string |
74 | { |
75 | return $this->city; |
76 | } |
77 | |
78 | public function setCity(?string $city): void |
79 | { |
80 | $this->city = $city; |
81 | } |
82 | |
83 | public function getZipCode(): ?string |
84 | { |
85 | return $this->zipCode; |
86 | } |
87 | |
88 | public function setZipCode(?string $zipCode): void |
89 | { |
90 | $this->zipCode = $zipCode; |
91 | } |
92 | |
93 | public function getInsee(): ?string |
94 | { |
95 | return $this->insee; |
96 | } |
97 | |
98 | public function setInsee(?string $insee): void |
99 | { |
100 | $this->insee = $insee; |
101 | } |
102 | } |