IPToken::getClientIp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kaliop\IdentityManagementBundle\Security\Authentication\Token;
4
5
use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;
6
7
/**
8
 * @todo review which other methods of the base class we have to reimplement...
9
 */
10
class IPToken extends AbstractToken
11
{
12
    protected $clientIp;
13
14
    public function setClientIp($ip)
15
    {
16
        $this->clientIp = $ip;
17
        return $this;
18
    }
19
20
    public function getClientIp()
21
    {
22
        return $this->clientIp;
23
    }
24
25
    /**
26
     * @todo verify - is this correct?
27
     */
28
    public function getCredentials()
29
    {
30
        return '';
31
    }
32
}