Completed
Push — master ( 483eda...cb59ac )
by Дмитрий
03:04
created

AccessToken   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 20
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\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