1 | <?php |
||
8 | class EmailAddress extends StringLiteral |
||
9 | { |
||
10 | /** |
||
11 | * Returns an EmailAddress object given a PHP native string as parameter. |
||
12 | * |
||
13 | * @param string $value |
||
14 | */ |
||
15 | 4 | public function __construct($value) |
|
25 | |||
26 | /** |
||
27 | * Returns the local part of the email address |
||
28 | * |
||
29 | * @return StringLiteral |
||
30 | */ |
||
31 | 1 | public function getLocalPart() |
|
38 | |||
39 | /** |
||
40 | * Returns the domain part of the email address |
||
41 | * |
||
42 | * @return Domain |
||
43 | */ |
||
44 | 1 | public function getDomainPart() |
|
51 | } |
||
52 |