1 | <?php /** MicroEmailDriver */ |
||
23 | class EmailDriver extends LoggerDriver |
||
24 | { |
||
25 | /** @var string $from email for sender attribute */ |
||
26 | private $from; |
||
27 | /** @var string $type message attribute */ |
||
28 | private $type = 'text/plain'; |
||
29 | /** @var string $to message recipient */ |
||
30 | private $to; |
||
31 | /** @var string $subject message theme */ |
||
32 | private $subject; |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Constructor is a initialize logger |
||
37 | * |
||
38 | * @access public |
||
39 | * |
||
40 | * @param array $params configuration params |
||
41 | * |
||
42 | * @throws \Micro\Base\Exception |
||
43 | * @result void |
||
44 | */ |
||
45 | public function __construct(array $params = []) |
||
53 | |||
54 | /** |
||
55 | * Send message in log |
||
56 | * |
||
57 | * @access public |
||
58 | * |
||
59 | * @param integer $level level number |
||
60 | * @param string $message message to write |
||
61 | * |
||
62 | * @result void |
||
63 | * @throws \Micro\Base\Exception |
||
64 | */ |
||
65 | public function sendMessage($level, $message) |
||
76 | } |
||
77 |