1 | <?php |
||
18 | abstract class AbstractTransport implements TransportInterface |
||
19 | { |
||
20 | /** |
||
21 | * The address used as a "from" address. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | private $fromAddress; |
||
26 | |||
27 | /** |
||
28 | * The name of the sender that belongs to the from address. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | private $fromName; |
||
33 | |||
34 | /** |
||
35 | * Gets the addresses for this transport. |
||
36 | * |
||
37 | * @param RecipientInterface $recipient |
||
38 | * @param Message $message |
||
39 | * @return array |
||
40 | */ |
||
41 | protected function getAddresses(RecipientInterface $recipient, Message $message): array |
||
47 | |||
48 | /** |
||
49 | * Gets the value of field "fromAddress". |
||
50 | * |
||
51 | * @return null|string |
||
52 | */ |
||
53 | public function getFromAddress(): ?string |
||
57 | |||
58 | /** |
||
59 | * Sets the value of field "fromAddress". |
||
60 | * |
||
61 | * @param null|string $fromAddress |
||
62 | */ |
||
63 | public function setFromAddress(?string $fromAddress) |
||
67 | |||
68 | /** |
||
69 | * Gets the value of field "fromName". |
||
70 | * |
||
71 | * @return null|string |
||
72 | */ |
||
73 | public function getFromName(): ?string |
||
77 | |||
78 | /** |
||
79 | * Sets the value of field "fromName". |
||
80 | * |
||
81 | * @param null|string $fromName |
||
82 | */ |
||
83 | public function setFromName(?string $fromName) |
||
87 | } |
||
88 |