| Total Complexity | 6 | 
| Total Lines | 29 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | trait HasCommands  | 
            ||
| 10 | { | 
            ||
| 11 | protected $commands = null;  | 
            ||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * @param array|mixed $commands  | 
            ||
| 15 | */  | 
            ||
| 16 | public function commands($commands)  | 
            ||
| 17 |     { | 
            ||
| 18 | $commands = is_array($commands) ? $commands : func_get_args();  | 
            ||
| 19 | $this->commands = array_merge($commands);  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @return array  | 
            ||
| 24 | */  | 
            ||
| 25 | public function getCommands(): array  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | protected function initCommands()  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 41 |