Completed
Pull Request — 0.0.35 (#659)
by thomas
26:42
created

RawKeyParams::getDepth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: tk
5
 * Date: 2/25/18
6
 * Time: 3:32 PM
7
 */
8
9
namespace BitWasp\Bitcoin\Serializer\Key\HierarchicalKey;
10
11
use BitWasp\Buffertools\BufferInterface;
12
13
class RawKeyParams
14
{
15
    private $prefix;
16
    private $depth;
17
    private $fingerprint;
18
    private $sequence;
19
    private $chainCode;
20
    private $keyData;
21
22 42
    public function __construct($prefix, $depth, $fingerprint, $sequence, BufferInterface $chainCode, BufferInterface $keyData)
23
    {
24 42
        $this->prefix = $prefix;
25 42
        $this->depth = $depth;
26 42
        $this->fingerprint = $fingerprint;
27 42
        $this->sequence = $sequence;
28 42
        $this->chainCode = $chainCode;
29 42
        $this->keyData = $keyData;
30 42
    }
31
32
    /**
33
     * @return string
34
     */
35 42
    public function getPrefix()
36
    {
37 42
        return $this->prefix;
38
    }
39
40
    /**
41
     * @return int
42
     */
43 41
    public function getDepth()
44
    {
45 41
        return $this->depth;
46
    }
47
48
    /**
49
     * @return int
50
     */
51 41
    public function getFingerprint()
52
    {
53 41
        return $this->fingerprint;
54
    }
55
56
    /**
57
     * @return int
58
     */
59 41
    public function getSequence()
60
    {
61 41
        return $this->sequence;
62
    }
63
64
    /**
65
     * @return BufferInterface
66
     */
67 41
    public function getChainCode()
68
    {
69 41
        return $this->chainCode;
70
    }
71
72
    /**
73
     * @return BufferInterface
74
     */
75 41
    public function getKeyData()
76
    {
77 41
        return $this->keyData;
78
    }
79
}
80