ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMailAddress Class Reference

Class ilMailAddress. More...

+ Inheritance diagram for ilMailAddress:
+ Collaboration diagram for ilMailAddress:

Public Member Functions

 __construct (protected string $mailbox, protected string $host)
 
 setHost (string $host)
 
 setMailbox (string $mailbox)
 
 getHost ()
 
 getMailbox ()
 
 __toString ()
 

Detailed Description

Class ilMailAddress.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 25 of file class.ilMailAddress.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailAddress::__construct ( protected string  $mailbox,
protected string  $host 
)

Definition at line 27 of file class.ilMailAddress.php.

28  {
29  }

Member Function Documentation

◆ __toString()

ilMailAddress::__toString ( )

Definition at line 52 of file class.ilMailAddress.php.

References getHost(), and getMailbox().

52  : string
53  {
54  return implode('@', [
55  $this->getMailbox(),
56  $this->getHost(),
57  ]);
58  }
+ Here is the call graph for this function:

◆ getHost()

ilMailAddress::getHost ( )

Definition at line 41 of file class.ilMailAddress.php.

Referenced by __toString(), ilMailAddressTest\testAddressShouldReturnMailboxAndHost(), and ilGroupNameAsMailValidator\validate().

41  : string
42  {
43  return $this->host;
44  }
+ Here is the caller graph for this function:

◆ getMailbox()

ilMailAddress::getMailbox ( )

Definition at line 47 of file class.ilMailAddress.php.

Referenced by __toString(), ilMailAddressTypeFactory\getByPrefix(), ilMailAddressTest\testAddressShouldReturnMailboxAndHost(), and ilGroupNameAsMailValidator\validate().

47  : string
48  {
49  return $this->mailbox;
50  }
+ Here is the caller graph for this function:

◆ setHost()

ilMailAddress::setHost ( string  $host)

Definition at line 31 of file class.ilMailAddress.php.

31  : void
32  {
33  $this->host = $host;
34  }

◆ setMailbox()

ilMailAddress::setMailbox ( string  $mailbox)

Definition at line 36 of file class.ilMailAddress.php.

36  : void
37  {
38  $this->mailbox = $mailbox;
39  }

The documentation for this class was generated from the following file: