Completed
Push — develop ( 098743...5f7eab )
by Raphael De
02:19
created

RefreshTokenEvent::getRefreshToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Majora\Component\OAuth\Event;
4
5
use Majora\Component\OAuth\Model\RefreshTokenInterface;
6
use Symfony\Component\EventDispatcher\Event;
7
8
/**
9
 * RefreshToken specific event class.
10
 *
11
 * @author Raphael De Freitas <[email protected]>
12
 */
13
class RefreshTokenEvent extends Event
14
{
15
    /**
16
     * @var RefreshTokenInterface
17
     */
18
    protected $refreshToken;
19
20
    /**
21
     * Construct.
22
     *
23
     * @param RefreshTokenInterface $refreshToken
24
     */
25
    public function __construct(RefreshTokenInterface $refreshToken)
26
    {
27
        $this->refreshToken = $refreshToken;
28
    }
29
30
    /**
31
     * return related access token.
32
     *
33
     * @return RefreshTokenInterface
34
     */
35
    public function getRefreshToken()
36
    {
37
        return $this->refreshToken;
38
    }
39
}
40