RefreshEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 22
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRefreshToken() 0 4 1
A getPreAuthenticatedToken() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the GesdinetJWTRefreshTokenBundle package.
5
 *
6
 * (c) Gesdinet <http://www.gesdinet.com/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Gesdinet\JWTRefreshTokenBundle\Event;
13
14
use Gesdinet\JWTRefreshTokenBundle\Model\RefreshTokenInterface;
15
use Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken;
16
17
class RefreshEvent extends Event
18
{
19
    private $refreshToken;
20
21
    private $preAuthenticatedToken;
22
23
    public function __construct(RefreshTokenInterface $refreshToken, PostAuthenticationGuardToken $preAuthenticatedToken)
24
    {
25
        $this->refreshToken = $refreshToken;
26
        $this->preAuthenticatedToken = $preAuthenticatedToken;
27
    }
28
29
    public function getRefreshToken()
30
    {
31
        return $this->refreshToken;
32
    }
33
34
    public function getPreAuthenticatedToken()
35
    {
36
        return $this->preAuthenticatedToken;
37
    }
38
}
39