ExecResult   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getResult() 0 4 1
A getOutput() 0 4 1
1
<?php
2
3
4
namespace Genesis\Commands;
5
6
7
/**
8
 * @author Adam Bisek <[email protected]>
9
 */
10
class ExecResult
11
{
12
13
	/** @var int */
14
	private $result;
15
16
	/** @var array|NULL */
17
	private $output;
18
19
20
	/**
21
	 * @param int $result
22
	 * @param array|NULL $output
23
	 */
24 10
	public function __construct($result, array $output = NULL)
25
	{
26 10
		$this->result = $result;
27 10
		$this->output = $output;
28 10
	}
29
30
31
	/**
32
	 * Returns exit code
33
	 * @return int
34
	 */
35 7
	public function getResult()
36
	{
37 7
		return $this->result;
38
	}
39
40
41
	/**
42
	 * Returns STDOUT
43
	 * @return array|NULL
44
	 */
45 5
	public function getOutput()
46
	{
47 5
		return $this->output;
48
	}
49
50
}