Completed
Push — master ( b7db91...9b4aa4 )
by Дмитрий
03:25
created

AccessToken   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 20
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getIdentity() 0 4 1
1
<?php
2
/**
3
 * SocialConnect project
4
 * @author: Patsura Dmitry https://github.com/ovr <[email protected]>
5
 */
6
7
namespace SocialConnect\Auth\Provider\OpenID;
8
9
class AccessToken
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $identity;
15
16
    public function __construct($identity)
17
    {
18
        $this->identity = $identity;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getIdentity()
25
    {
26
        return $this->identity;
27
    }
28
}
29