| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class MailerConfig extends InjectableConfig |
||
| 17 | { |
||
| 18 | public const CONFIG = 'mailer'; |
||
| 19 | |||
| 20 | /** @var array */ |
||
| 21 | protected $config = [ |
||
| 22 | 'dsn' => '', |
||
| 23 | 'from' => '', |
||
| 24 | 'queue' => null, |
||
| 25 | 'pipeline' => null, |
||
| 26 | 'queueConnection' => null, |
||
| 27 | ]; |
||
| 28 | |||
| 29 | public function getDSN(): string |
||
| 30 | { |
||
| 31 | return $this->config['dsn']; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getFromAddress(): string |
||
| 35 | { |
||
| 36 | return $this->config['from']; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @deprecated since v2.9. |
||
| 41 | */ |
||
| 42 | public function getQueuePipeline(): ?string |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getQueue(): ?string |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getQueueConnection(): ?string |
||
| 57 |