| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | abstract class Email |
||
| 18 | { |
||
| 19 | private $gateway; |
||
|
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * Returns the EmailGateway to send emails with. |
||
| 23 | * Calling this function multiple times will return unique objects. |
||
| 24 | * |
||
| 25 | * @param string $gateway |
||
| 26 | * The name of the gateway to use. Please only supply if specific |
||
| 27 | * gateway functions are being used. |
||
| 28 | * If the gateway is not found, it will throw an EmailException |
||
| 29 | * @throws Exception |
||
| 30 | * @return EmailGateway |
||
| 31 | */ |
||
| 32 | public static function create($gateway = null) |
||
| 43 |