Passed
Push — master ( 022b32...35c6c5 )
by Aleksandr
01:52
created

DomainTrait::getDomain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the eav package.
4
 * @author    Aleksandr Drobotik <[email protected]>
5
 * @copyright 2023 Aleksandr Drobotik
6
 * @license   https://opensource.org/license/mit  The MIT License
7
 */
8
declare(strict_types=1);
9
10
namespace Drobotik\Eav\Traits;
11
12
use Drobotik\Eav\Domain;
13
14
trait DomainTrait
15
{
16
    private Domain $domain;
17
    public function setDomain(Domain $domain): void
18
    {
19
        $this->domain = $domain;
20
    }
21
22
    public function getDomain() : Domain
23
    {
24
        return $this->domain;
25
    }
26
27
}