Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
42.86% covered (danger)
42.86%
6 / 14
42.86% covered (danger)
42.86%
6 / 14
CRAP
0.00% covered (danger)
0.00%
0 / 1
Address
42.86% covered (danger)
42.86%
6 / 14
42.86% covered (danger)
42.86%
6 / 14
50.57
0.00% covered (danger)
0.00%
0 / 1
 getLineOne
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setLineOne
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLineTwo
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setLineTwo
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setCity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getZipCode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setZipCode
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMail
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setMail
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPhoneNumber
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setPhoneNumber
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCountry
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setCountry
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
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
22declare(strict_types=1);
23
24namespace App\Domain\Registry\Model\Embeddable;
25
26class 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 $mail;
52
53    /**
54     * @var string|null
55     */
56    private $phoneNumber;
57
58    /**
59     * @return string|null
60     */
61    private $country;
62
63    public function getLineOne(): ?string
64    {
65        return $this->lineOne;
66    }
67
68    public function setLineOne(?string $lineOne): void
69    {
70        $this->lineOne = $lineOne;
71    }
72
73    public function getLineTwo(): ?string
74    {
75        return $this->lineTwo;
76    }
77
78    public function setLineTwo(?string $lineTwo): void
79    {
80        $this->lineTwo = $lineTwo;
81    }
82
83    public function getCity(): ?string
84    {
85        return $this->city;
86    }
87
88    public function setCity(?string $city): void
89    {
90        $this->city = $city;
91    }
92
93    public function getZipCode(): ?string
94    {
95        return $this->zipCode;
96    }
97
98    public function setZipCode(?string $zipCode): void
99    {
100        $this->zipCode = $zipCode;
101    }
102
103    public function getMail(): ?string
104    {
105        return $this->mail;
106    }
107
108    public function setMail(?string $mail): void
109    {
110        $this->mail = $mail;
111    }
112
113    public function getPhoneNumber(): ?string
114    {
115        return $this->phoneNumber;
116    }
117
118    public function setPhoneNumber(?string $phoneNumber): void
119    {
120        $this->phoneNumber = $phoneNumber;
121    }
122
123    public function getCountry(): ?string
124    {
125        return $this->country;
126    }
127
128    public function setCountry(?string $country): void
129    {
130        $this->country = $country;
131    }
132}