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

OutputData   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 51
ccs 0
cts 18
cp 0
rs 10
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getType() 0 4 1
A getScript() 0 4 1
A getSolution() 0 4 1
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