NullCourier   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 1
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A deliver() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Courier;
6
7
use Courier\Exceptions\TransmissionException;
8
use Courier\Exceptions\UnsupportedContentException;
9
use PhpEmail\Email;
10
11
/**
12
 * A courier that accepts an email but does nothing with it. This implementation should be used in testing.
13
 *
14
 * @codeCoverageIgnore
15
 */
16
class NullCourier implements Courier
17
{
18
    /**
19
     * @param Email $email
20
     *
21
     * @throws TransmissionException
22
     * @throws UnsupportedContentException
23
     *
24
     * @return void
25
     */
26
    public function deliver(Email $email): void
27
    {
28
    }
29
}
30