Passed
Branch master (5c167b)
by smiley
02:26
created

EmailLog   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 17
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __log() 0 1 1
1
<?php
2
/**
3
 * Class EmailLog
4
 *
5
 * @filesource   EmailLog.php
6
 * @created      04.01.2018
7
 * @package      chillerlan\Logger\Output
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2018 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Logger\Output;
14
15
use chillerlan\Logger\LogOptions;
16
use PHPMailer\PHPMailer\PHPMailer;
17
18
/**
19
 */
20
class EmailLog extends LogOutputAbstract{
21
22
	protected $mailer;
23
24
	/** @noinspection PhpMissingParentConstructorInspection */
25
	/**
26
	 * EmailLog constructor.
27
	 *
28
	 * @param \chillerlan\Logger\LogOptions $options
29
	 * @param \PHPMailer\PHPMailer\PHPMailer     $mailer
30
	 */
31
	public function __construct(LogOptions $options, PHPMailer $mailer){
32
		$this->options = $options;
33
		$this->mailer  = $mailer;
34
	}
35
36
	protected function __log(string $level, string $message, array $context = null){
37
		// TODO: Implement log() method.
38
	}
39
40
}
41