Completed
Pull Request — develop (#189)
by Serhii
04:49 queued 02:35
created

EntityManagerAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEntityManager() 0 4 1
1
<?php
2
3
namespace App\Doctrine;
4
5
use Doctrine\ORM\EntityManagerInterface;
6
7
trait EntityManagerAwareTrait
8
{
9
    /**
10
     * @var EntityManagerInterface
11
     */
12
    protected $em;
13
14
    public function setEntityManager(EntityManagerInterface $em = null)
15
    {
16
        $this->em = $em;
17
    }
18
}
19