TestMailer::send()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Common code for Mail test cases.
4
 */
5
use Nette\Mail\Message;
6
use Nette\Mail\IMailer;
7
8
class TestMailer implements IMailer
9
{
10
	public static $output;
11
12
	function send(Message $mail)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
13
	{
14
		self::$output = $mail->generateMessage();
15
	}
16
}
17