| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct( |
||
| 30 | $stream = 'php://stderr', |
||
| 31 | ?FormatterInterface $formatter = NULL |
||
| 32 | ) { |
||
| 33 | if (!in_array($stream, ['php://stderr', 'php://stdout'])) { |
||
| 34 | throw new \LogicException("unknown stream"); |
||
| 35 | } |
||
| 36 | parent::__construct($stream, $formatter ?? new AnsiFormatter()); |
||
| 37 | } |
||
| 38 | |||
| 46 | } |