Passed
Push — master ( bf67e8...626507 )
by Milad
02:27
created

EdDsaPublicKey::__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 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php declare(strict_types=1);
2
3
namespace MiladRahimi\Jwt\Cryptography\Keys;
4
5
class EdDsaPublicKey
6
{
7
    private string $content;
8
9
    protected ?string $id;
10
11
    public function __construct(string $value, ?string $id = null)
12
    {
13
        $this->content = $value;
14
        $this->id = $id;
15
    }
16
17
    public function getContent(): string
18
    {
19
        return $this->content;
20
    }
21
22
    public function getId(): ?string
23
    {
24
        return $this->id;
25
    }
26
}
27