DKIMStatus::getCurrentRecord()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
/**
5
 * This file is part of the mailserver-admin package.
6
 * (c) Jeffrey Boehm <https://github.com/jeboehm/mailserver-admin>
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace App\Service\DKIM;
12
13
class DKIMStatus
14
{
15
    private bool $dkimEnabled;
16
    private bool $dkimRecordFound;
17
    private bool $dkimRecordValid;
18
    private string $currentRecord;
19
20
    public function __construct(bool $dkimEnabled, bool $dkimRecordFound, bool $dkimRecordValid, string $currentRecord)
21
    {
22
        $this->dkimEnabled = $dkimEnabled;
23
        $this->dkimRecordFound = $dkimRecordFound;
24
        $this->dkimRecordValid = $dkimRecordValid;
25
        $this->currentRecord = $currentRecord;
26
    }
27
28
    public function isDkimEnabled(): bool
29
    {
30
        return $this->dkimEnabled;
31
    }
32
33
    public function isDkimRecordFound(): bool
34
    {
35
        return $this->dkimRecordFound;
36
    }
37
38
    public function isDkimRecordValid(): bool
39
    {
40
        return $this->dkimRecordValid;
41
    }
42
43
    public function getCurrentRecord(): string
44
    {
45
        return $this->currentRecord;
46
    }
47
}
48