Completed
Pull Request — master (#1074)
by Luca
02:03
created

DeviceCodeTrait::getExpiryDateTime()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
nc 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
    /**
48
     * @return string
49
     */
50 2
    public function getVerificationUri()
51
    {
52 2
        return $this->verificationUri;
53
    }
54
55
    /**
56
     * @param string $verificationUri
57
     */
58 1
    public function setVerificationUri($verificationUri)
59
    {
60 1
        $this->verificationUri = $verificationUri;
61 1
    }
62
63
    /**
64
     * @return ClientEntityInterface
65
     */
66
    abstract public function getClient();
67
68
    /**
69
     * @return DateTimeImmutable
70
     */
71
    abstract public function getExpiryDateTime();
72
73
    /**
74
     * @return ScopeEntityInterface[]
75
     */
76
    abstract public function getScopes();
77
78
    /**
79
     * @return string
80
     */
81
    abstract public function getIdentifier();
82
}
83