Passed
Pull Request — master (#18)
by
unknown
08:11
created

EcdaaKeyTrustPath   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getEcdaaKeyId() 0 3 1
1
<?php
2
3
namespace MadWizard\WebAuthn\Attestation\TrustPath;
4
5
use MadWizard\WebAuthn\Format\ByteBuffer;
6
7
final class EcdaaKeyTrustPath implements TrustPathInterface
8
{
9
    /**
10
     * @var ByteBuffer
11
     */
12
    private $ecdaaKeyId;
13
14
    public function __construct(ByteBuffer $ecdaaKeyId)
15
    {
16
        $this->ecdaaKeyId = $ecdaaKeyId;
17
    }
18
19
    public function getEcdaaKeyId(): ByteBuffer
20
    {
21
        return $this->ecdaaKeyId;
22
    }
23
}
24