Completed
Push — develop ( b3b9d6...b879cb )
by greg
19:23 queued 20s
created

PostVoteComment   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
use PlaygroundGame\Mapper\AbstractMapper;
6
7
class PostVoteComment extends AbstractMapper
8
{
9
10
    public function getEntityRepository()
11
    {
12
        if (null === $this->er) {
13
            $this->er = $this->em->getRepository('PlaygroundGame\Entity\PostVoteComment');
14
        }
15
16
        return $this->er;
17
    }
18
}
19