Completed
Push — master ( f9bd82...79fc97 )
by John
05:21
created

ManagerRegistryAwareTrait::setManagerRegistry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace LunixRESTBasics\Endpoint;
3
4
use Doctrine\Common\Persistence\ManagerRegistry;
5
6
trait ManagerRegistryAwareTrait
7
{
8
    /**
9
     * @var ManagerRegistry
10
     */
11
    protected $managerRegistry;
12
13
    /**
14
     * @param ManagerRegistry $managerRegistry
15
     */
16 1
    public function setManagerRegistry(ManagerRegistry $managerRegistry) {
17 1
        $this->managerRegistry = $managerRegistry;
18 1
    }
19
}
20