DummyOauthTokenList::save()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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