Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class ShellExecResult |
||
12 | { |
||
13 | /** @var string */ |
||
14 | private $output; |
||
15 | |||
16 | /** @var string */ |
||
17 | private $errors; |
||
18 | |||
19 | /** @var string */ |
||
20 | private $commandLine; |
||
21 | |||
22 | /** @var int */ |
||
23 | private $exitStatus; |
||
24 | |||
25 | 22 | public function __construct(string $commandLine, int $exitStatus, string $output, string $errors) |
|
26 | { |
||
27 | 22 | $this->commandLine = $commandLine; |
|
28 | 22 | $this->exitStatus = $exitStatus; |
|
29 | 22 | $this->output = $output; |
|
30 | 22 | $this->errors = $errors; |
|
31 | 22 | } |
|
32 | |||
33 | 11 | public function commandLine(): string |
|
34 | { |
||
35 | 11 | return $this->commandLine; |
|
36 | } |
||
37 | |||
38 | 19 | public function exitStatus(): int |
|
39 | { |
||
40 | 19 | return $this->exitStatus; |
|
41 | } |
||
42 | |||
43 | 18 | public function output(): string |
|
46 | } |
||
47 | |||
48 | 12 | public function errors(): string |
|
51 | } |
||
52 | } |
||
53 |