| 1 | <?php |
||
| 10 | final class From implements HeaderInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Address |
||
| 14 | */ |
||
| 15 | private $from; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * From constructor. |
||
| 19 | * @param Address $from |
||
| 20 | */ |
||
| 21 | 9 | public function __construct(Address $from) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return HeaderName |
||
| 28 | */ |
||
| 29 | 8 | public function getName(): HeaderName |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return HeaderValue |
||
| 36 | */ |
||
| 37 | 9 | public function getValue(): HeaderValue |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $emailAddress |
||
| 44 | * @return From |
||
| 45 | */ |
||
| 46 | 1 | public static function fromEmailAddress(string $emailAddress): From |
|
| 50 | } |