Completed
Pull Request — master (#268)
by greg
07:26 queued 04:08
created

MissionGameCondition   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A refresh() 0 4 1
A getEntityRepository() 0 8 2
1
<?php
2
3
namespace PlaygroundGame\Mapper;
4
5
use PlaygroundGame\Mapper\AbstractMapper;
6
7
class MissionGameCondition extends AbstractMapper
8
{
9
    /**
10
    * refresh : supprimer une entite missionGameCondition
11
    * @param PlaygroundGame\Entity\MissionGameCondition $entity missionGameCondition
12
    *
13
    */
14
    public function refresh($entity)
15
    {
16
        $this->em->refresh($entity);
17
    }
18
19
    /**
20
    * getEntityRepository : recupere l'entite missionGameCondition
21
    *
22
    * @return \Doctrine\ORM\EntityRepository $missionGameCondition
23
    */
24
    public function getEntityRepository()
25
    {
26
        if (null === $this->er) {
27
            $this->er = $this->em->getRepository('PlaygroundGame\Entity\MissionGameCondition');
28
        }
29
30
        return $this->er;
31
    }
32
}
33