NullAdapter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 11
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A send() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Linio\Component\Mail\Adapter;
6
7
use Linio\Component\Mail\AdapterInterface;
8
use Linio\Component\Mail\Message;
9
10
class NullAdapter implements AdapterInterface
11
{
12
    public function __construct(array $config = [])
13
    {
14
    }
15
16
    public function send(Message $message)
17
    {
18
        return true;
19
    }
20
}
21