Completed
Pull Request — master (#385)
by thomas
76:00 queued 51:37
created

OutputData::getScript()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
1
<?php
2
3
namespace BitWasp\Bitcoin\Script\Classifier;
4
5
use BitWasp\Bitcoin\Script\ScriptInterface;
6
7
class OutputData
8
{
9
    /**
10
     * @var string
11
     */
12
    private $type;
13
    /**
14
     * @var ScriptInterface
15
     */
16
    private $script;
17
    /**
18
     * @var mixed
19
     */
20
    private $solution;
21
    /**
22
     * OutputData constructor.
23
     * @param string $type
24
     * @param ScriptInterface $script
25
     * @param mixed $solution
26
     */
27
    public function __construct($type, ScriptInterface $script, $solution)
28
    {
29
        $this->type = $type;
30
        $this->script = $script;
31
        $this->solution = $solution;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getType()
38
    {
39
        return $this->type;
40
    }
41
42
    /**
43
     * @return ScriptInterface
44
     */
45
    public function getScript()
46
    {
47
        return $this->script;
48
    }
49
50
    /**
51
     * @return mixed
52
     */
53
    public function getSolution()
54
    {
55
        return $this->solution;
56
    }
57
}
58