Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Tarsana\Command\Examples; |
||
5 | class RepeatCommand extends Command { |
||
6 | |||
7 | protected function init () |
||
8 | { |
||
9 | $this->name('Repeat') |
||
10 | ->version('1.0.0') |
||
11 | ->description('Repeats a word a number of times') |
||
12 | ->syntax('word: string, count: (number: 3)') |
||
13 | ->options(['--upper']) |
||
14 | ->describe('word', 'The word to repeat') |
||
15 | ->describe('count', 'The number of times to repeat the word') |
||
16 | ->describe('--upper', 'Converts the result to uppercase'); |
||
17 | } |
||
18 | |||
19 | protected function execute() |
||
25 | } |
||
26 | |||
28 |