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

ContainerTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setAttributeContainer() 0 3 1
A getAttributeContainer() 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\AttributeContainer;
13
14
trait ContainerTrait
15
{
16
    protected AttributeContainer $attributeContainer;
17
18 1
    public function setAttributeContainer(AttributeContainer $attributeContainer): void
19
    {
20 1
        $this->attributeContainer = $attributeContainer;
21
    }
22
23 1
    public function getAttributeContainer(): AttributeContainer
24
    {
25 1
        return $this->attributeContainer;
26
    }
27
}