Test Failed
Push — master ( 9eb68a...5271f3 )
by Thomas
02:48
created

GenericExtensionOutput   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getResponse() 0 3 1
1
<?php
2
3
namespace MadWizard\WebAuthn\Extension\Generic;
4
5
use MadWizard\WebAuthn\Extension\AbstractExtensionOutput;
6
use MadWizard\WebAuthn\Extension\ExtensionResponseInterface;
7
8
class GenericExtensionOutput extends AbstractExtensionOutput
9
{
10
    /**
11
     * @var ExtensionResponseInterface
12
     */
13
    private $response;
14
15
    public function __construct(ExtensionResponseInterface $response)
16
    {
17
        parent::__construct($response->getIdentifier());
18
        $this->response = $response;
19
    }
20
21
    public function getResponse(): ExtensionResponseInterface
22
    {
23
        return $this->response;
24
    }
25
}
26