Passed
Push — master ( 3f1e0c...bf7a69 )
by Aleksandr
02:11
created

ImportContainerTrait::setContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
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\Trait;
11
12
use Drobotik\Eav\Import\ImportContainer;
13
14
trait ImportContainerTrait
15
{
16
    private ImportContainer $container;
17
18 1
    public function setContainer(ImportContainer $container): void
19
    {
20 1
        $this->container = $container;
21
    }
22
23 1
    public function getContainer() : ImportContainer
24
    {
25 1
        return $this->container;
26
    }
27
}