Passed
Pull Request — master (#1470)
by
unknown
33:53
created

AbstractResponseType::setPrivateKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
/**
4
 * OAuth 2.0 Abstract Response Type.
5
 *
6
 * @author      Alex Bilbie <[email protected]>
7
 * @copyright   Copyright (c) Alex Bilbie
8
 * @license     http://mit-license.org/
9
 *
10
 * @link        https://github.com/thephpleague/oauth2-server
11
 */
12
13
declare(strict_types=1);
14
15
namespace League\OAuth2\Server\ResponseTypes;
16
17
use League\OAuth2\Server\CryptKeyInterface;
18
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
19
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
20
21
abstract class AbstractResponseType implements ResponseTypeInterface
22
{
23
    protected AccessTokenEntityInterface $accessToken;
24
25
    protected RefreshTokenEntityInterface $refreshToken;
26
27
    public function setAccessToken(AccessTokenEntityInterface $accessToken): void
28
    {
29
        $this->accessToken = $accessToken;
30
    }
31
32 6
    public function setRefreshToken(RefreshTokenEntityInterface $refreshToken): void
33
    {
34 6
        $this->refreshToken = $refreshToken;
35
    }
36
}
37