Completed
Push — master ( 6391fe...b20865 )
by Akihito
02:23
created

Result::setOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace Ackintosh\Snidel\Result;
3
4
class Result
5
{
6
    /** @var mix */
7
    private $return;
8
9
    /** @var string */
10
    private $output;
11
12
    private $fork;
13
14
    private $failure = false;
15
16
    /**
17
     * set return
18
     *
19
     * @param   mix     $return
20
     * @return  void
21
     */
22
    public function setReturn($return)
23
    {
24
        $this->return = $return;
25
    }
26
27
    /**
28
     * return return value
29
     *
30
     * @return  mix
31
     */
32
    public function getReturn()
33
    {
34
        return $this->return;
35
    }
36
37
    /**
38
     * set output
39
     *
40
     * @param   string  $output
41
     * @return  void
42
     */
43
    public function setOutput($output)
44
    {
45
        $this->output = $output;
46
    }
47
48
    /**
49
     * return output
50
     *
51
     * @return  string
52
     */
53
    public function getOutput()
54
    {
55
        return $this->output;
56
    }
57
58
    public function setFailure()
59
    {
60
        $this->failure = true;
61
    }
62
63
    public function setFork($fork)
64
    {
65
        $this->fork = $fork;
66
    }
67
68
    public function getFork()
69
    {
70
        return $this->fork;
71
    }
72
73
    public function isFailure()
74
    {
75
        return $this->failure;
76
    }
77
}
78