| Conditions | 4 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 12 | public function demonstrate(): void |
||
| 13 | { |
||
| 14 | $text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'; |
||
| 15 | $textColors = (new ReflectionClass(Text::class))->getConstants(); |
||
| 16 | $backgroundColors = (new ReflectionClass(Background::class))->getConstants(); |
||
| 17 | $options = (new ReflectionClass(Option::class))->getConstants(); |
||
| 18 | |||
| 19 | foreach ($textColors as $color) { |
||
| 20 | Console::log($text . "\n", $color); |
||
| 21 | } |
||
| 22 | |||
| 23 | foreach ($backgroundColors as $color) { |
||
| 24 | Console::log($text . "\n", null, $color); |
||
| 25 | } |
||
| 26 | |||
| 27 | foreach ($options as $option) { |
||
| 28 | Console::log($text . "\n", null, null, $option); |
||
| 29 | } |
||
| 33 | (new ConsoleApp())->demonstrate(); |