Passed
Push — master ( b15242...753048 )
by Radu
02:16
created

Payload::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ParcelValue\Api\JWT;
6
7
/**
8
* An implementation of the object retuned by returned by Firebase\JWT\JWT::decode
9
*/
10
class Payload
11
{
12
    public string $sub;
13
    public string $clientKey;
14
15
    public function __construct(string $sub, string $clientKey)
16
    {
17
        $this->sub = $sub;
18
        $this->clientKey = $clientKey;
19
    }
20
}
21