Passed
Push — master ( 3ec415...9f2f47 )
by Daniel
16:25
created

JWTRefreshedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 14
ccs 0
cts 5
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getToken() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Silverback API Components Bundle Project
5
 *
6
 * (c) Daniel West <[email protected]>
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
declare(strict_types=1);
13
14
namespace Silverback\ApiComponentsBundle\Event;
15
16
use Lexik\Bundle\JWTAuthenticationBundle\Event\Event;
17
18
/**
19
 * @author Vincent Chalamon <[email protected]>
20
 */
21
final class JWTRefreshedEvent extends Event
22
{
23
    public const EVENT_NAME = 'lexik_jwt_authentication.on_jwt_refreshed';
24
25
    private string $token;
26
27
    public function __construct(string $token)
28
    {
29
        $this->token = $token;
30
    }
31
32
    public function getToken(): string
33
    {
34
        return $this->token;
35
    }
36
}
37