Sender::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
4
namespace SamIT\React\Smtp;
5
6
7
use React\Socket\ConnectionInterface;
8
9
/**
10
 * Class Sender
11
 * This class will send messages over connections.
12
 * @package SamIT\React\Smtp
13
 */
14
class Sender
15
{
16
17
    private $loop;
18
19
    public function __construct(LoopInterface $loop)
20
    {
21
        $this->loop = $loop;
22
    }
23
24
25
    /**
26
     * @param ConnectionInterface $connection
27
     * @param MessageInterface $message
28
     * @param Request $request
29
     */
30
    public function send(
31
        ConnectionInterface $connection,
0 ignored issues
show
Unused Code introduced by
The parameter $connection is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
        MessageInterface $message,
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
33
        Request $request
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
34
    ) {
35
36
//        $connection->on
37
38
    }
39
40
}