1 | <?php |
||
10 | final class From implements HeaderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var Address |
||
14 | */ |
||
15 | private $from; |
||
16 | |||
17 | /** |
||
18 | * @param Address $from |
||
19 | */ |
||
20 | 19 | public function __construct(Address $from) |
|
24 | |||
25 | /** |
||
26 | * @return HeaderName |
||
27 | */ |
||
28 | 16 | public function getName(): HeaderName |
|
32 | |||
33 | /** |
||
34 | * @return HeaderValue |
||
35 | */ |
||
36 | 16 | public function getValue(): HeaderValue |
|
40 | |||
41 | /** |
||
42 | * @param string $emailAddress |
||
43 | * @param string $name |
||
44 | * @return From |
||
45 | */ |
||
46 | 1 | public static function fromAddress(string $emailAddress, string $name = ''): From |
|
50 | |||
51 | /** |
||
52 | * @param string $emailAddress |
||
53 | * @return From |
||
54 | */ |
||
55 | 1 | public static function fromEmailAddress(string $emailAddress): From |
|
59 | } |
||
60 |