RegisterRequest::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace u2flib_server;
4
5
/**
6
 * Class for building a registration request.
7
 */
8
class RegisterRequest
9
{
10
    /** @var string Protocol version */
11
    public $version = U2F_VERSION;
12
13
    /** @var string Registration challenge */
14
    public $challenge;
15
16
    /** @var string Application id */
17
    public $appId;
18
19
    /**
20
     * @param string $challenge
21
     * @param string $appId
22
     * @internal
23
     */
24
    public function __construct($challenge, $appId)
25
    {
26
        $this->challenge = $challenge;
27
        $this->appId = $appId;
28
    }
29
}
30