| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class DeleteExpiredActivations extends Command |
||
| 9 | { |
||
| 10 | protected $activationRepository; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The name and signature of the console command. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'activations:clean'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The console command description. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description = 'Delete activation records older than 72 hours.'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create a new command instance. |
||
| 28 | * |
||
| 29 | * DeleteExpiredActivations constructor. |
||
| 30 | * |
||
| 31 | * @param ActivationRepository $activationRepository |
||
| 32 | */ |
||
| 33 | public function __construct(ActivationRepository $activationRepository) |
||
| 34 | { |
||
| 35 | parent::__construct(); |
||
| 36 | $this->activationRepository = $activationRepository; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Execute the console command. |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function handle() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |