| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class CommandOutput |
||
| 18 | { |
||
| 19 | /** @var int */ |
||
| 20 | private $code = 0; |
||
| 21 | |||
| 22 | /** @var OutputInterface */ |
||
| 23 | private $output = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param int $code |
||
| 27 | * @param OutputInterface $output |
||
| 28 | */ |
||
| 29 | public function __construct(int $code, OutputInterface $output) |
||
| 30 | { |
||
| 31 | $this->code = $code; |
||
| 32 | $this->output = $output; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return int |
||
| 37 | */ |
||
| 38 | public function getCode(): int |
||
| 39 | { |
||
| 40 | return $this->code; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return OutputInterface|BufferedOutput |
||
| 45 | */ |
||
| 46 | public function getOutput(): OutputInterface |
||
| 49 | } |
||
| 50 | } |
||
| 51 |