Completed
Push — master ( 4b135f...89b1c6 )
by Manolo
09:09
created

ClickMock::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the MsalsasVotingBundle package.
5
 *
6
 * (c) Manolo Salsas
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Msalsas\VotingBundle\Tests\Mock;
13
14
15
class ClickMock
16
{
17
    protected $user;
18
    protected $userIP;
19
20
    public function __construct($user, $userIP = '127.0.0.1')
0 ignored issues
show
Unused Code introduced by
The parameter $userIP is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    public function __construct($user, /** @scrutinizer ignore-unused */ $userIP = '127.0.0.1')

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    {
22
        $this->user = $user;
23
    }
24
25
    public function getId()
26
    {
27
        return 1;
28
    }
29
30
    public function getUser()
31
    {
32
        return $this->user;
33
    }
34
35
    public function getReference()
36
    {
37
        return 1;
38
    }
39
40
    public function getUserIP()
41
    {
42
        return $this->userIP;
43
    }
44
}