| 1 | <?php |
||
| 9 | class FlushOldDevices extends Command |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The console command name. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $name = 'pi:flush'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The console command description. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $description = 'Remove all devices from the list which don\'t poked us in the last 15 minutes.'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new command instance. |
||
| 27 | */ |
||
| 28 | 6 | public function __construct() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Execute the console command. |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | 1 | public function fire() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param $affectedRows |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function getMessage($affectedRows) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Get all devices which should get deleted. |
||
| 61 | * |
||
| 62 | * @return mixed |
||
| 63 | */ |
||
| 64 | 1 | public function getDevices() |
|
| 78 | } |
||
| 79 |