Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function display() : void |
||
17 | { |
||
18 | $this->assertMenuOpen(); |
||
19 | |||
20 | $this->terminal->moveCursorToRow($this->y); |
||
21 | |||
22 | $this->emptyRow(); |
||
23 | |||
24 | $this->write(sprintf( |
||
25 | "%s%s%s%s%s\n", |
||
26 | $this->style->getUnselectedSetCode(), |
||
27 | str_repeat(' ', $this->style->getPadding()), |
||
28 | $this->text, |
||
29 | str_repeat(' ', $this->style->getPadding()), |
||
30 | $this->style->getUnselectedUnsetCode() |
||
31 | )); |
||
32 | |||
33 | $this->emptyRow(); |
||
34 | |||
35 | $this->terminal->moveCursorToTop(); |
||
36 | |||
37 | $reader = new NonCanonicalReader($this->terminal); |
||
38 | $reader->readCharacter(); |
||
39 | |||
40 | $this->parentMenu->redraw(); |
||
41 | } |
||
42 | } |
||
43 |