Completed
Push — master ( 6e52f0...d9a404 )
by Alexandre
02:29
created

Token::getToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 0
cts 3
cp 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 02/01/2018
6
 * Time: 16:48
7
 */
8
9
namespace OAuth2OLD\Credential;
10
11
12
abstract class Token
13
{
14
    const TYPE_BEARER = 'Bearer';
15
    const TYPE_MAC = 'MAC';
16
17
    /**
18
     * @var string
19
     */
20
    private $token;
21
22
    public function __construct(string $token)
23
    {
24
        $this->token = $token;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getToken(): string
31
    {
32
        return $this->token;
33
    }
34
}