Passed
Pull Request — master (#7)
by Jeff
03:29
created

DkimInfoTrait::getCurrentDnsRecord()   A

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\Entity;
12
13
use App\Service\DKIM\DKIMStatus;
14
15
trait DkimInfoTrait
16
{
17
    private DKIMStatus $dkimStatus;
18
    private string $expectedDnsRecord;
19
    private string $currentDnsRecord;
20
21
    public function getDkimStatus(): DKIMStatus
22
    {
23
        return $this->dkimStatus;
24
    }
25
26
    public function setDkimStatus(DKIMStatus $dkimStatus): void
27
    {
28
        $this->dkimStatus = $dkimStatus;
29
    }
30
31
    public function getExpectedDnsRecord(): string
32
    {
33
        return $this->expectedDnsRecord;
34
    }
35
36
    public function setExpectedDnsRecord(string $expectedDnsRecord): void
37
    {
38
        $this->expectedDnsRecord = $expectedDnsRecord;
39
    }
40
41
    public function getCurrentDnsRecord(): string
42
    {
43
        return $this->currentDnsRecord;
44
    }
45
46
    public function setCurrentDnsRecord(string $currentDnsRecord): void
47
    {
48
        $this->currentDnsRecord = $currentDnsRecord;
49
    }
50
}
51