ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilMailAddress.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilMailAddress
26
{
27
protected
string
$mailbox
=
''
;
28
protected
string
$host
=
''
;
29
30
public
function
__construct
(
string
$mailbox,
string
$host)
31
{
32
$this->mailbox =
$mailbox
;
33
$this->host =
$host
;
34
}
35
36
public
function
setHost
(
string
$host): void
37
{
38
$this->host =
$host
;
39
}
40
41
public
function
setMailbox
(
string
$mailbox): void
42
{
43
$this->mailbox =
$mailbox
;
44
}
45
46
public
function
getHost
(): string
47
{
48
return
$this->host
;
49
}
50
51
52
public
function
getMailbox
(): string
53
{
54
return
$this->mailbox
;
55
}
56
57
public
function
__toString
(): string
58
{
59
return
implode(
'@'
, [
60
$this->
getMailbox
(),
61
$this->
getHost
(),
62
]);
63
}
64
}
ilMailAddress\__construct
__construct(string $mailbox, string $host)
Definition:
class.ilMailAddress.php:30
ilMailAddress\getMailbox
getMailbox()
Definition:
class.ilMailAddress.php:52
ilMailAddress\setMailbox
setMailbox(string $mailbox)
Definition:
class.ilMailAddress.php:41
ilMailAddress\__toString
__toString()
Definition:
class.ilMailAddress.php:57
ilMailAddress\$host
string $host
Definition:
class.ilMailAddress.php:28
ilMailAddress\$mailbox
string $mailbox
Definition:
class.ilMailAddress.php:27
ilMailAddress\getHost
getHost()
Definition:
class.ilMailAddress.php:46
ilMailAddress\setHost
setHost(string $host)
Definition:
class.ilMailAddress.php:36
ilMailAddress
Class ilMailAddress.
Definition:
class.ilMailAddress.php:25
Services
Mail
classes
Address
class.ilMailAddress.php
Generated on Sun Aug 31 2025 22:02:23 for ILIAS by
1.8.13 (using
Doxyfile
)