Agenda::setAddress()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
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 Agenda
17
{
18
    /** @var int|null */
19
    private $id;
20
21
    /** @var string|null */
22
    private $name;
23
24
    /** @var string|null */
25
    private $company_id;
26
27
    /** @var string|null */
28
    private $company_tax_id;
29
30
    /** @var string|null */
31
    private $company_vat_id;
32
33
    /** @var string */
34
    private $home_currency = 'EUR';
35
36
    /** @var string|null */
37
    private $email_alias;
38
39
    /** @var string|null */
40
    private $email_whitelist;
41
42
    /** @var Address|null */
43
    private $address;
44
45
    /**
46
     * @return int|null
47
     */
48
    public function getId(): ?int
49
    {
50
        return $this->id;
51
    }
52
53
    /**
54
     * @param int|null $id
55
     *
56
     * @return Agenda
57
     */
58
    public function setId(?int $id): Agenda
59
    {
60
        $this->id = $id;
61
62
        return $this;
63
    }
64
65
    /**
66
     * @return null|string
67
     */
68
    public function getName(): ?string
69
    {
70
        return $this->name;
71
    }
72
73
    /**
74
     * @param null|string $name
75
     *
76
     * @return Agenda
77
     */
78
    public function setName(?string $name): Agenda
79
    {
80
        $this->name = $name;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @return null|string
87
     */
88
    public function getCompanyId(): ?string
89
    {
90
        return $this->company_id;
91
    }
92
93
    /**
94
     * @param null|string $company_id
95
     *
96
     * @return Agenda
97
     */
98
    public function setCompanyId(?string $company_id): Agenda
99
    {
100
        $this->company_id = $company_id;
101
102
        return $this;
103
    }
104
105
    /**
106
     * @return null|string
107
     */
108
    public function getCompanyTaxId(): ?string
109
    {
110
        return $this->company_tax_id;
111
    }
112
113
    /**
114
     * @param null|string $company_tax_id
115
     *
116
     * @return Agenda
117
     */
118
    public function setCompanyTaxId(?string $company_tax_id): Agenda
119
    {
120
        $this->company_tax_id = $company_tax_id;
121
122
        return $this;
123
    }
124
125
    /**
126
     * @return null|string
127
     */
128
    public function getCompanyVatId(): ?string
129
    {
130
        return $this->company_vat_id;
131
    }
132
133
    /**
134
     * @param null|string $company_vat_id
135
     *
136
     * @return Agenda
137
     */
138
    public function setCompanyVatId(?string $company_vat_id): Agenda
139
    {
140
        $this->company_vat_id = $company_vat_id;
141
142
        return $this;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getHomeCurrency(): string
149
    {
150
        return $this->home_currency;
151
    }
152
153
    /**
154
     * @param string $home_currency
155
     *
156
     * @return Agenda
157
     */
158
    public function setHomeCurrency(string $home_currency): Agenda
159
    {
160
        $this->home_currency = $home_currency;
161
162
        return $this;
163
    }
164
165
    /**
166
     * @return null|string
167
     */
168
    public function getEmailAlias(): ?string
169
    {
170
        return $this->email_alias;
171
    }
172
173
    /**
174
     * @param null|string $email_alias
175
     *
176
     * @return Agenda
177
     */
178
    public function setEmailAlias(?string $email_alias): Agenda
179
    {
180
        $this->email_alias = $email_alias;
181
182
        return $this;
183
    }
184
185
    /**
186
     * @return null|string
187
     */
188
    public function getEmailWhitelist(): ?string
189
    {
190
        return $this->email_whitelist;
191
    }
192
193
    /**
194
     * @param null|string $email_whitelist
195
     *
196
     * @return Agenda
197
     */
198
    public function setEmailWhitelist(?string $email_whitelist): Agenda
199
    {
200
        $this->email_whitelist = $email_whitelist;
201
202
        return $this;
203
    }
204
205
    /**
206
     * @return Address|null
207
     */
208
    public function getAddress(): ?Address
209
    {
210
        return $this->address;
211
    }
212
213
    /**
214
     * @param Address|null $address
215
     *
216
     * @return Agenda
217
     */
218
    public function setAddress(?Address $address): Agenda
219
    {
220
        $this->address = $address;
221
222
        return $this;
223
    }
224
}
225