| 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 | 10 | public function __construct(Address $from) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return HeaderName |
||
| 28 | */ |
||
| 29 | 8 | public function getName(): HeaderName |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return HeaderValue |
||
| 36 | */ |
||
| 37 | 10 | public function getValue(): HeaderValue |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $emailAddress |
||
| 44 | * @param string $name |
||
| 45 | * @return From |
||
| 46 | */ |
||
| 47 | 1 | public static function fromAddress(string $emailAddress, string $name = ''): From |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $emailAddress |
||
| 54 | * @return From |
||
| 55 | */ |
||
| 56 | 1 | public static function fromEmailAddress(string $emailAddress): From |
|
| 60 | } |