Address::getPostalCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of datamolino client.
5
 *
6
 * (c) 2018 cwd.at GmbH <[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
declare(strict_types=1);
13
14
namespace Cwd\Datamolino\Model;
15
16
class Address
17
{
18
    /** @var string|null */
19
    private $street;
20
21
    /** @var string|null */
22
    private $building_no;
23
24
    /** @var string|null */
25
    private $city;
26
27
    /** @var string|null */
28
    private $postal_code;
29
30
    /** @var string|null */
31
    private $country;
32
33
    /**
34
     * @return null|string
35
     */
36
    public function getStreet(): ?string
37
    {
38
        return $this->street;
39
    }
40
41
    /**
42
     * @param null|string $street
43
     *
44
     * @return Address
45
     */
46
    public function setStreet(?string $street): Address
47
    {
48
        $this->street = $street;
49
50
        return $this;
51
    }
52
53
    /**
54
     * @return null|string
55
     */
56
    public function getBuildingNo(): ?string
57
    {
58
        return $this->building_no;
59
    }
60
61
    /**
62
     * @param null|string $building_no
63
     *
64
     * @return Address
65
     */
66
    public function setBuildingNo(?string $building_no): Address
67
    {
68
        $this->building_no = $building_no;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return null|string
75
     */
76
    public function getCity(): ?string
77
    {
78
        return $this->city;
79
    }
80
81
    /**
82
     * @param null|string $city
83
     *
84
     * @return Address
85
     */
86
    public function setCity(?string $city): Address
87
    {
88
        $this->city = $city;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return null|string
95
     */
96
    public function getPostalCode(): ?string
97
    {
98
        return $this->postal_code;
99
    }
100
101
    /**
102
     * @param null|string $postal_code
103
     *
104
     * @return Address
105
     */
106
    public function setPostalCode(?string $postal_code): Address
107
    {
108
        $this->postal_code = $postal_code;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return null|string
115
     */
116
    public function getCountry(): ?string
117
    {
118
        return $this->country;
119
    }
120
121
    /**
122
     * @param null|string $country
123
     *
124
     * @return Address
125
     */
126
    public function setCountry(?string $country): Address
127
    {
128
        $this->country = $country;
129
130
        return $this;
131
    }
132
}
133