Passed
Push — master ( 3a2451...e6e9f9 )
by Thomas
08:19 queued 05:35
created

StatementDirectorySource   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 getMetadataDir() 0 3 1
1
<?php
2
3
namespace MadWizard\WebAuthn\Metadata\Source;
4
5
class StatementDirectorySource implements MetadataSourceInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $metadataDir;
11
12
    public function __construct(string $metadataDir)
13
    {
14
        $this->metadataDir = $metadataDir;
15
    }
16
17
    public function getMetadataDir(): string
18
    {
19
        return $this->metadataDir;
20
    }
21
}
22