| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class HealthCommand extends Command |
||
| 14 | { |
||
| 15 | public function __construct(Cpu $cpu, Memory $memory, Network $network, WebServer $webServer, storage $storage) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The name and signature of the console command. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $signature = 'stethoscope:health'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The console command description. |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $description = 'check server is up'; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Execute the console command. |
||
| 42 | * |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function handle() |
||
| 59 |