| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 20 | public static function using($driver, $options = null){ |
||
| 21 | $class = 'Email\\'.ucfirst(strtolower($driver)); |
||
| 22 | if ( ! class_exists($class) ) throw new \Exception("[core.email] : $driver driver not found."); |
||
| 23 | static::$driver_name = $driver; |
||
| 24 | static::$options = $options; |
||
| 25 | static::$driver = new $class; |
||
| 26 | static::$driver->onInit($options); |
||
| 27 | } |
||
| 28 | |||
| 53 |