Completed
Push — master ( 7aa62b...6d63cb )
by Kirill
37:27
created

SecretDataContainer::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 6
ccs 0
cts 6
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types = 1);
2
3
namespace Personnage\Tinkoff\SDK;
4
5
final class SecretDataContainer
6
{
7
    /**
8
     * @var string
9
     */
10
    private $serial;
11
    /**
12
     * @var string
13
     */
14
    private $digest;
15
    /**
16
     * @var string
17
     */
18
    private $signature;
19
20
    public function __construct(string $serial, string $digest, string $signature)
21
    {
22
        $this->serial = $serial;
23
        $this->digest = $digest;
24
        $this->signature = $signature;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getSerial(): string
31
    {
32
        return $this->serial;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getDigest(): string
39
    {
40
        return $this->digest;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getSignature(): string
47
    {
48
        return $this->signature;
49
    }
50
}
51