Completed
Pull Request — master (#1074)
by Luca
01:57 queued 28s
created

DeviceCodeTrait::getVerificationUri()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @author      Alex Bilbie <[email protected]>
4
 * @copyright   Copyright (c) Alex Bilbie
5
 * @license     http://mit-license.org/
6
 *
7
 * @link        https://github.com/thephpleague/oauth2-server
8
 */
9
10
namespace League\OAuth2\Server\Entities\Traits;
11
12
use DateTimeImmutable;
13
use League\OAuth2\Server\Entities\ClientEntityInterface;
14
use League\OAuth2\Server\Entities\ScopeEntityInterface;
15
16
trait DeviceCodeTrait
17
{
18
    /**
19
     * @var string
20
     */
21
    private $userCode;
22
23
    /**
24
     * @var string
25
     */
26
    private $verificationUri;
27
28
    /**
29
     * @return string
30
     */
31 2
    public function getUserCode()
32
    {
33 2
        return $this->userCode;
34
    }
35
36
    /**
37
     * @param string $userCode
38
     *
39
     * @return string
40
     */
41 2
    public function setUserCode($userCode)
42
    {
43 2
        $this->userCode = $userCode;
44 2
    }
45
46
    /**
47
     * @return string
48
     */
49 2
    public function getVerificationUri()
50
    {
51 2
        return $this->verificationUri;
52
    }
53
54
    /**
55
     * @param string $verificationUri
56
     */
57 1
    public function setVerificationUri($verificationUri)
58
    {
59 1
        $this->verificationUri = $verificationUri;
60 1
    }
61
62
    /**
63
     * @return ClientEntityInterface
64
     */
65
    abstract public function getClient();
66
67
    /**
68
     * @return DateTimeImmutable
69
     */
70
    abstract public function getExpiryDateTime();
71
72
    /**
73
     * @return ScopeEntityInterface[]
74
     */
75
    abstract public function getScopes();
76
77
    /**
78
     * @return string
79
     */
80
    abstract public function getIdentifier();
81
}
82