ILIAS  release_8 Revision v8.24
class.ilMailAddress.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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}
Class ilMailAddress.
setHost(string $host)
__construct(string $mailbox, string $host)
setMailbox(string $mailbox)