| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class MailMotorFactory |
||
| 14 | { |
||
| 15 | /** @var ServiceLocator */ |
||
| 16 | protected $serviceLocator; |
||
| 17 | |||
| 18 | /** @var string|null */ |
||
| 19 | protected $mailEngine; |
||
| 20 | |||
| 21 | public function __construct( |
||
| 22 | ServiceLocator $serviceLocator, |
||
| 23 | ?string $mailEngine |
||
| 24 | ) { |
||
| 25 | $this->serviceLocator = $serviceLocator; |
||
| 26 | $this->setMailEngine($mailEngine); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getSubscriberGateway(): SubscriberGateway |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function setMailEngine(?string $mailEngine): void |
||
| 41 | } |
||
| 42 | } |
||
| 43 |