Passed
Pull Request — master (#1316)
by
unknown
30:49
created

IdTokenIssuedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace League\OAuth2\Server;
6
7
use Lcobucci\JWT\Token;
8
9
/**
10
 * An id_token has been issued
11
 *
12
 * @author Marc Riemer <[email protected]>
13
 */
14
final class IdTokenIssuedEvent extends IdTokenEvent
15
{
16
    /**
17
     * Token
18
     *
19
     */
20
    private Token $token;
21
22
    /**
23
     * Get Token
24
     *
25
     */
26
    public function getToken(): Token
27
    {
28
        return $this->token;
29
    }
30
31
    public function __construct(mixed $name, Token $token)
32
    {
33
        parent::__construct($name);
34
        $this->token = $token;
35
    }
36
}
37