ManagerRegistryAwareTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setManagerRegistry() 0 3 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
    public function setManagerRegistry(ManagerRegistry $managerRegistry) {
17
        $this->managerRegistry = $managerRegistry;
18
    }
19
}
20