Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class AuthorizationCode implements GrantsAccessTokens |
||
8 | { |
||
9 | /** |
||
10 | * The token value |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | public $value; |
||
15 | |||
16 | /** |
||
17 | * Create a new authorization code instance |
||
18 | * |
||
19 | * @param string $value The authorization code supplied by Revolut |
||
20 | */ |
||
21 | public function __construct(string $value) |
||
24 | } |
||
25 | |||
26 | public function getValue() |
||
27 | { |
||
28 | return $this->value; |
||
29 | } |
||
30 | |||
31 | public static function getType() |
||
32 | { |
||
33 | return 'code'; |
||
34 | } |
||
35 | |||
36 | public static function getGrantType() |
||
39 | } |
||
40 | } |
||
41 |