Completed
Pull Request — master (#314)
by greg
03:20
created

TradingCard   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEntityRepository() 0 8 2
1
<?php
2
3
namespace PlaygroundGame\Mapper;
4
5
class TradingCard extends Game
6
{
7
8
    public function getEntityRepository()
9
    {
10
        if (null === $this->er) {
11
            $this->er = $this->em->getRepository('PlaygroundGame\Entity\TradingCard');
12
        }
13
14
        return $this->er;
15
    }
16
}
17