NullCourier::deliver()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
c 0
b 0
f 0
rs 10
cc 1
eloc 0
nc 1
nop 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