Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class CleanStatistics extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'websockets:clean |
||
16 | {appId? : (optional) The app id that will be cleaned.} |
||
17 | {--days= : Delete records older than this amount of days since now.} |
||
18 | '; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string|null |
||
24 | */ |
||
25 | protected $description = 'Clean up old statistics from the WebSocket statistics storage.'; |
||
26 | |||
27 | /** |
||
28 | * Run the command. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function handle() |
||
45 |