DummyOauthTokenList   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A save() 0 3 1
A load() 0 3 1
1
<?php
2
3
/**
4
 * PHP version 5.4 and 8
5
 *
6
 * @category  Authorization
7
 * @package   Payever\Core
8
 * @author    payever GmbH <[email protected]>
9
 * @author    Hennadii.Shymanskyi <[email protected]>
10
 * @copyright 2017-2021 payever GmbH
11
 * @license   MIT <https://opensource.org/licenses/MIT>
12
 * @link      https://docs.payever.org/shopsystems/api/getting-started
13
 */
14
15
namespace Payever\ExternalIntegration\Core\Authorization;
16
17
/**
18
 * Default storage of Oauth tokens if none explicitly provided.
19
 * Tokens are retrieved & stored in memory for each request.
20
 *
21
 * NOTE: It is strongly recommended to implement your own persistent tokens storage.
22
 */
23
class DummyOauthTokenList extends OauthTokenList
24
{
25
    /**
26
     * @inheritdoc
27
     */
28
    public function load()
29
    {
30
        return $this;
31
    }
32
33
    /**
34
     * @inheritdoc
35
     */
36
    public function save()
37
    {
38
        return $this;
39
    }
40
}
41