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

EdDsaPrivateKey   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 20
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContent() 0 3 1
A getId() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace MiladRahimi\Jwt\Cryptography\Keys;
4
5
class EdDsaPrivateKey
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