Sender   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A send() 0 9 1
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
}