Passed
Branch dev_2x (3e8772)
by Adrian
01:42
created

MapperAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
c 0
b 0
f 0
dl 0
loc 17
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Sirius\Orm\Blueprint;
5
6
trait MapperAwareTrait
7
{
8
    /**
9
     * @var Mapper
10
     */
11
    protected $mapper;
12
13
    public function setMapper(Mapper $mapper): self
14
    {
15
        $this->mapper = $mapper;
16
17
        return $this;
18
    }
19
20
    public function getMapper(): Mapper
21
    {
22
        return $this->mapper;
23
    }
24
}
25