Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | abstract class AbstractOutputtingSubscriber |
||
10 | { |
||
11 | private ?OutputInterface $output; |
||
12 | |||
13 | public function getOutput(): OutputInterface |
||
14 | { |
||
15 | if (!isset($this->output)) { |
||
16 | throw new \LogicException('Unable to get output, did you call setOutput()?'); |
||
17 | } |
||
18 | |||
19 | return $this->output; |
||
|
|||
20 | } |
||
21 | |||
22 | public function setOutput(OutputInterface $output): void |
||
25 | } |
||
26 | } |
||
27 |