Completed
Push — develop ( 15a723...2c3db8 )
by greg
03:23
created

Invitation::remove()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace PlaygroundGame\Mapper;
3
4
use Doctrine\ORM\EntityManager;
5
use PlaygroundGame\Options\ModuleOptions;
6
use Zend\Stdlib\Hydrator\HydratorInterface;
7
use ZfcBase\EventManager\EventProvider;
8
use PlaygroundGame\Mapper\AbstractMapper;
9
10
class Invitation extends AbstractMapper
11
{
12
    public function findByUser($user)
13
    {
14
        return $this->getEntityRepository()->findBy(array('user'=>$user));
15
    }
16
17
    public function findByRequestKey($key)
18
    {
19
        return $this->getEntityRepository()->findBy(array('requestKey'=>$key));
20
    }
21
22
    /**
23
     * @param string $id
0 ignored issues
show
Bug introduced by
There is no parameter named $id. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
24
     * @return \Heineken\Entity\Invitation
25
     */
26
    public function findByGame($game)
27
    {
28
        return $this->getEntityRepository()->findBy(array('game'=>$game));
29
    }
30
31
    public function getEntityRepository()
32
    {
33
        return $this->em->getRepository('PlaygroundGame\Entity\Invitation');
34
    }
35
}
36