Completed
Push — master ( 5d8875...2d45df )
by Frederik
02:35
created

ConsoleBackend::contains()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Genkgo\Mail\Protocol\Smtp\Backend;
5
6
use Genkgo\Mail\EmailAddress;
7
use Genkgo\Mail\MessageInterface;
8
use Genkgo\Mail\Protocol\Smtp\BackendInterface;
9
10
final class ConsoleBackend implements BackendInterface
11
{
12
    /**
13
     * @param EmailAddress $mailbox
14
     * @return bool
15
     */
16 1
    public function contains(EmailAddress $mailbox): bool
17
    {
18 1
        return true;
19
    }
20
21
    /**
22
     * @param EmailAddress $mailbox
23
     * @param MessageInterface $message
24
     * @param string $folder
25
     */
26 1
    public function store(EmailAddress $mailbox, MessageInterface $message, string $folder): void
27
    {
28 1
        echo $message, \PHP_EOL;
29 1
    }
30
}
31