Completed
Pull Request — master (#239)
by thomas
31:39 queued 14:06
created

SigValues   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 39
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getScriptSig() 0 4 1
A getScriptWitness() 0 4 1
1
<?php
2
3
namespace BitWasp\Bitcoin\Transaction\Factory;
4
5
use BitWasp\Bitcoin\Script\ScriptInterface;
6
use BitWasp\Bitcoin\Script\ScriptWitnessInterface;
7
8
class SigValues
9
{
10
    /**
11
     * @var ScriptInterface
12
     */
13
    private $scriptSig;
14
15
    /**
16
     * @var ScriptWitnessInterface
17
     */
18
    private $scriptWitness;
19
20
    /**
21
     * SigValues constructor.
22
     * @param ScriptInterface $scriptSig
23
     * @param ScriptWitnessInterface $scriptWitness
24
     */
25 54
    public function __construct(ScriptInterface $scriptSig, ScriptWitnessInterface $scriptWitness)
26
    {
27 54
        $this->scriptSig = $scriptSig;
28 54
        $this->scriptWitness = $scriptWitness;
29 54
    }
30
31
    /**
32
     * @return ScriptInterface
33
     */
34 54
    public function getScriptSig()
35
    {
36 54
        return $this->scriptSig;
37
    }
38
39
    /**
40
     * @return ScriptWitnessInterface
41
     */
42 54
    public function getScriptWitness()
43
    {
44 54
        return $this->scriptWitness;
45
    }
46
}
47