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

DomainTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setDomain() 0 3 1
A getDomain() 0 3 1
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
}