ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilMailAddress.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilMailAddress
implements
Stringable
22
{
23
public
function
__construct
(
protected
string
$mailbox,
protected
string
$host)
24
{
25
}
26
27
public
function
setHost
(
string
$host): void
28
{
29
$this->host = $host;
30
}
31
32
public
function
setMailbox
(
string
$mailbox): void
33
{
34
$this->mailbox = $mailbox;
35
}
36
37
public
function
getHost
(): string
38
{
39
return
$this->host;
40
}
41
42
43
public
function
getMailbox
(): string
44
{
45
return
$this->mailbox;
46
}
47
48
public
function
__toString
(): string
49
{
50
return
implode(
'@'
, [
51
$this->
getMailbox
(),
52
$this->
getHost
(),
53
]);
54
}
55
}
ilMailAddress\getMailbox
getMailbox()
Definition:
class.ilMailAddress.php:43
ilMailAddress\setMailbox
setMailbox(string $mailbox)
Definition:
class.ilMailAddress.php:32
ilMailAddress\__toString
__toString()
Definition:
class.ilMailAddress.php:48
ilMailAddress\getHost
getHost()
Definition:
class.ilMailAddress.php:37
ilMailAddress\__construct
__construct(protected string $mailbox, protected string $host)
Definition:
class.ilMailAddress.php:23
Stringable
ilMailAddress\setHost
setHost(string $host)
Definition:
class.ilMailAddress.php:27
ilMailAddress
Definition:
class.ilMailAddress.php:21
components
ILIAS
Mail
classes
Address
class.ilMailAddress.php
Generated on Sun Aug 31 2025 23:03:17 for ILIAS by
1.8.13 (using
Doxyfile
)