IPToken   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 23
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setClientIp() 0 5 1
A getClientIp() 0 4 1
A getCredentials() 0 4 1
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
}