ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilMailAddress Class Reference
+ 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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

24  {
25  }

Member Function Documentation

◆ __toString()

ilMailAddress::__toString ( )

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

References getHost(), and getMailbox().

48  : string
49  {
50  return implode('@', [
51  $this->getMailbox(),
52  $this->getHost(),
53  ]);
54  }
+ Here is the call graph for this function:

◆ getHost()

ilMailAddress::getHost ( )

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

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

37  : string
38  {
39  return $this->host;
40  }
+ Here is the caller graph for this function:

◆ getMailbox()

ilMailAddress::getMailbox ( )

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

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

43  : string
44  {
45  return $this->mailbox;
46  }
+ Here is the caller graph for this function:

◆ setHost()

ilMailAddress::setHost ( string  $host)

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

27  : void
28  {
29  $this->host = $host;
30  }

◆ setMailbox()

ilMailAddress::setMailbox ( string  $mailbox)

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

32  : void
33  {
34  $this->mailbox = $mailbox;
35  }

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