| 1 | <?php declare(strict_types = 1); |
||
| 5 | class Subject implements EmailPart |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $subject; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string[] |
||
| 14 | */ |
||
| 15 | private $parameters; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param string $subject |
||
| 21 | * @param string $parameters |
||
| 22 | */ |
||
| 23 | 9 | public function __construct(string $subject, array $parameters = []) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get subject of the message. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 5 | public function getSubject(): string |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Get the parameters used in the subject. |
||
| 41 | * |
||
| 42 | * @return string[] |
||
| 43 | */ |
||
| 44 | 7 | public function getParameters(): array |
|
| 48 | } |
||
| 49 |