UpdateUserOtp   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 17 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ecodev\Felix\Api\Output;
6
7
use GraphQL\Type\Definition\ObjectType;
8
9
final class UpdateUserOtp extends ObjectType
10
{
11
    public function __construct()
12
    {
13
        $config = [
14
            'description' => 'Result of a 2FA activation/deactivation',
15
            'fields' => [
16
                'status' => [
17
                    'type' => self::int(),
18
                    'description' => '0: nothing to be done, 1: secret generated (step 1), 2: activation success (step 2), 3: deactivation success',
19
                ],
20
                'qrcode' => [
21
                    'type' => self::string(),
22
                    'description' => 'Provisioning QR code in SVG',
23
                ],
24
            ],
25
        ];
26
27
        parent::__construct($config);
28
    }
29
}
30