Passed
Pull Request — master (#1184)
by
unknown
48:55 queued 13:43
created

ClientAuthenticationFailed::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
nc 1
nop 2
dl 0
loc 7
c 1
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace League\OAuth2\Server\Events;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
final class ClientAuthenticationFailed extends AbstractEvent
8
{
9
    /** @var string|null */
10
    private $clientId;
11
12
    public function __construct(
13
        ?string $clientId,
14
        ServerRequestInterface $request
15
    ) {
16
        parent::__construct($request);
17
        $this->name = 'client.authentication.failed';
18
        $this->clientId = $clientId;
19
    }
20
21
    public function getClientId(): ?string
22
    {
23
        return $this->clientId;
24
    }
25
}