Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
About | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
run | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 | |||
getDescription | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php declare(strict_types=1); |
2 | /* |
3 | * This file is part of Aplus Framework CLI Library. |
4 | * |
5 | * (c) Natan Felles <natanfelles@gmail.com> |
6 | * |
7 | * For the full copyright and license information, please view the LICENSE |
8 | * file that was distributed with this source code. |
9 | */ |
10 | namespace Framework\CLI\Commands; |
11 | |
12 | use Framework\CLI\CLI; |
13 | use Framework\CLI\Command; |
14 | |
15 | /** |
16 | * Class About. |
17 | * |
18 | * @package cli |
19 | */ |
20 | class About extends Command |
21 | { |
22 | public function run() : void |
23 | { |
24 | $lang = $this->console->getLanguage(); |
25 | CLI::write($lang->render('cli', 'about.line1'), CLI::FG_BRIGHT_GREEN); |
26 | CLI::write($lang->render('cli', 'about.line2')); |
27 | CLI::write($lang->render('cli', 'about.line3')); |
28 | CLI::write($lang->render('cli', 'about.line4')); |
29 | CLI::write($lang->render('cli', 'about.line5')); |
30 | } |
31 | |
32 | public function getDescription() : string |
33 | { |
34 | return $this->console->getLanguage()->render('cli', 'about.description'); |
35 | } |
36 | } |