-
-
Notifications
You must be signed in to change notification settings - Fork 681
Expand file tree
/
Copy pathAccountEmailSettingDomainObjectAbstract.php
More file actions
202 lines (172 loc) · 5.31 KB
/
Copy pathAccountEmailSettingDomainObjectAbstract.php
File metadata and controls
202 lines (172 loc) · 5.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?php
namespace HiEvents\DomainObjects\Generated;
/**
* THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
* @package HiEvents\DomainObjects\Generated
*/
abstract class AccountEmailSettingDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'account_email_setting';
final public const PLURAL_NAME = 'account_email_settings';
final public const ID = 'id';
final public const ACCOUNT_ID = 'account_id';
final public const SMTP_ENABLED = 'smtp_enabled';
final public const SMTP_HOST = 'smtp_host';
final public const SMTP_PORT = 'smtp_port';
final public const SMTP_ENCRYPTION = 'smtp_encryption';
final public const SMTP_USERNAME = 'smtp_username';
final public const SMTP_PASSWORD = 'smtp_password';
final public const MAIL_FROM_ADDRESS = 'mail_from_address';
final public const MAIL_FROM_NAME = 'mail_from_name';
final public const CREATED_AT = 'created_at';
final public const UPDATED_AT = 'updated_at';
final public const DELETED_AT = 'deleted_at';
protected int $id;
protected int $account_id;
protected bool $smtp_enabled = false;
protected ?string $smtp_host = null;
protected ?int $smtp_port = null;
protected ?string $smtp_encryption = null;
protected ?string $smtp_username = null;
protected ?string $smtp_password = null;
protected ?string $mail_from_address = null;
protected ?string $mail_from_name = null;
protected ?string $created_at = null;
protected ?string $updated_at = null;
protected ?string $deleted_at = null;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'account_id' => $this->account_id ?? null,
'smtp_enabled' => $this->smtp_enabled ?? null,
'smtp_host' => $this->smtp_host ?? null,
'smtp_port' => $this->smtp_port ?? null,
'smtp_encryption' => $this->smtp_encryption ?? null,
'smtp_username' => $this->smtp_username ?? null,
'smtp_password' => $this->smtp_password ?? null,
'mail_from_address' => $this->mail_from_address ?? null,
'mail_from_name' => $this->mail_from_name ?? null,
'created_at' => $this->created_at ?? null,
'updated_at' => $this->updated_at ?? null,
'deleted_at' => $this->deleted_at ?? null,
];
}
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getId(): int
{
return $this->id;
}
public function setAccountId(int $account_id): self
{
$this->account_id = $account_id;
return $this;
}
public function getAccountId(): int
{
return $this->account_id;
}
public function setSmtpEnabled(bool $smtp_enabled): self
{
$this->smtp_enabled = $smtp_enabled;
return $this;
}
public function getSmtpEnabled(): bool
{
return $this->smtp_enabled;
}
public function setSmtpHost(?string $smtp_host): self
{
$this->smtp_host = $smtp_host;
return $this;
}
public function getSmtpHost(): ?string
{
return $this->smtp_host;
}
public function setSmtpPort(?int $smtp_port): self
{
$this->smtp_port = $smtp_port;
return $this;
}
public function getSmtpPort(): ?int
{
return $this->smtp_port;
}
public function setSmtpEncryption(?string $smtp_encryption): self
{
$this->smtp_encryption = $smtp_encryption;
return $this;
}
public function getSmtpEncryption(): ?string
{
return $this->smtp_encryption;
}
public function setSmtpUsername(?string $smtp_username): self
{
$this->smtp_username = $smtp_username;
return $this;
}
public function getSmtpUsername(): ?string
{
return $this->smtp_username;
}
public function setSmtpPassword(?string $smtp_password): self
{
$this->smtp_password = $smtp_password;
return $this;
}
public function getSmtpPassword(): ?string
{
return $this->smtp_password;
}
public function setMailFromAddress(?string $mail_from_address): self
{
$this->mail_from_address = $mail_from_address;
return $this;
}
public function getMailFromAddress(): ?string
{
return $this->mail_from_address;
}
public function setMailFromName(?string $mail_from_name): self
{
$this->mail_from_name = $mail_from_name;
return $this;
}
public function getMailFromName(): ?string
{
return $this->mail_from_name;
}
public function setCreatedAt(?string $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getCreatedAt(): ?string
{
return $this->created_at;
}
public function setUpdatedAt(?string $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getUpdatedAt(): ?string
{
return $this->updated_at;
}
public function setDeletedAt(?string $deleted_at): self
{
$this->deleted_at = $deleted_at;
return $this;
}
public function getDeletedAt(): ?string
{
return $this->deleted_at;
}
}