Passed
Push — master ( f137da...c4f5b9 )
by Petr
03:20
created

AccessToken::getTokenHash()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
ccs 0
cts 4
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace AppBundle\Service\Vkontakte;
4
5
/**
6
 * @author Vehsamrak
7
 */
8
class AccessToken
9
{
10
11
    /** @var int */
12
    public $userVkontakteId;
13
14
    /** @var string */
15
    public $userEmail;
16
17
    /** @var string */
18
    private $vkontakteTokenHash;
19
20 2
    public function __construct(int $userVkontakteId, string $vkontakteTokenHash, string $userEmail = '')
21
    {
22 2
        $this->userVkontakteId = $userVkontakteId;
23 2
        $this->vkontakteTokenHash = $vkontakteTokenHash;
24 2
        $this->userEmail = $userEmail;
25 2
    }
26
27 2
    public function getVkontakteTokenHash(): string
28
    {
29 2
        return $this->vkontakteTokenHash;
30
    }
31
32 2
    public function getUserVkontakteId(): int
33
    {
34 2
        return $this->userVkontakteId;
35
    }
36
}
37