Completed
Push — master ( e95261...40aeb3 )
by greg
04:30 queued 01:59
created

PostVoteView   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

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