PopulatorTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPopulator() 0 3 1
A getPopulator() 0 3 1
1
<?php
2
3
namespace Sf4\Populator\Traits;
4
5
use Sf4\Populator\PopulatorInterface;
6
7
trait PopulatorTrait
8
{
9
10
    /** @var PopulatorInterface|null $populator */
11
    protected $populator;
12
13
    /**
14
     * @return PopulatorInterface|null
15
     */
16
    public function getPopulator(): ?PopulatorInterface
17
    {
18
        return $this->populator;
19
    }
20
21
    /**
22
     * @param PopulatorInterface|null $populator
23
     */
24
    public function setPopulator(?PopulatorInterface $populator): void
25
    {
26
        $this->populator = $populator;
27
    }
28
}
29