Completed
Push — master ( 8c5b1a...9a26dd )
by Tomáš
17:38
created

SomeRepository   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEntityManager() 0 4 1
1
<?php
2
3
namespace Symplify\DefaultAutowire\Tests\Resources\Repository;
4
5
use Doctrine\ORM\EntityManagerInterface;
6
7
final class SomeRepository
8
{
9
    /**
10
     * @var EntityManagerInterface
11
     */
12
    private $entityManager;
13
14
    public function __construct(EntityManagerInterface $entityManager)
15
    {
16
        $this->entityManager = $entityManager;
17
    }
18
19
    /**
20
     * @return EntityManagerInterface
21
     */
22
    public function getEntityManager()
23
    {
24
        return $this->entityManager;
25
    }
26
}
27