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

EmailLog::__log()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 0
nc 1
nop 3
crap 2
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