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

TradingCardCard::getEntityRepository()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
namespace PlaygroundGame\Mapper;
3
4
use PlaygroundGame\Mapper\AbstractMapper;
5
6
class TradingCardCard extends AbstractMapper
7
{
8
9
    public function getEntityRepository()
10
    {
11
        if (null === $this->er) {
12
            $this->er = $this->em->getRepository('PlaygroundGame\Entity\TradingCardCard');
13
        }
14
15
        return $this->er;
16
    }
17
}
18