Passed
Push — master ( 1f909f...68b106 )
by Thomas
07:19
created

AuthenticationResult::getUserHandle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace MadWizard\WebAuthn\Server\Authentication;
4
5
use MadWizard\WebAuthn\Credential\UserCredentialInterface;
6
use MadWizard\WebAuthn\Credential\UserHandle;
7
8
final class AuthenticationResult
9
{
10
    /**
11
     * @var UserCredentialInterface
12
     */
13
    private $userCredential;
14
15 4
    public function __construct(UserCredentialInterface $userCredential)
16
    {
17 4
        $this->userCredential = $userCredential;
18 4
    }
19
20 4
    public function getUserCredential(): UserCredentialInterface
21
    {
22 4
        return $this->userCredential;
23
    }
24
25
    public function getUserHandle(): UserHandle
26
    {
27
        return $this->userCredential->getUserHandle();
28
    }
29
}
30