Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class MailerFactory |
||
16 | { |
||
17 | private static $config = []; |
||
18 | |||
19 | /** |
||
20 | * @param string $protocol |
||
21 | * @param string $class |
||
22 | * @throws \ByJG\Mail\Exception\InvalidMailHandlerException |
||
23 | */ |
||
24 | 4 | public static function registerMailer($class) |
|
33 | } |
||
34 | } |
||
35 | |||
36 | |||
37 | /** |
||
38 | * @param $connection |
||
39 | * @return \ByJG\Mail\Wrapper\MailWrapperInterface |
||
40 | * @throws \ByJG\Mail\Exception\ProtocolNotRegisteredException |
||
41 | */ |
||
42 | 2 | public static function create($connection) |
|
55 |