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

RefreshTokenEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRefreshToken() 0 4 1
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