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

Result   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 74
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setReturn() 0 4 1
A getReturn() 0 4 1
A setOutput() 0 4 1
A getOutput() 0 4 1
A setFailure() 0 4 1
A setFork() 0 4 1
A getFork() 0 4 1
A isFailure() 0 4 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