Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| UpdateBudgetStatusRejected | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| handle | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Console\Commands; |
| 4 | |
| 5 | use App\Http\Controllers\Quotations; |
| 6 | use Illuminate\Console\Command; |
| 7 | use Illuminate\Support\Facades\Log; |
| 8 | |
| 9 | class UpdateBudgetStatusRejected extends Command |
| 10 | { |
| 11 | /** |
| 12 | * The name and signature of the console command. |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | protected $signature = 'update:budget-status-rejected'; |
| 17 | |
| 18 | /** |
| 19 | * The console command description. |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | protected $description = 'Update budget status rejected'; |
| 24 | |
| 25 | /** |
| 26 | * Execute the console command. |
| 27 | */ |
| 28 | public function handle(): void |
| 29 | { |
| 30 | try { |
| 31 | |
| 32 | $quotations = new Quotations; |
| 33 | $quotations->update_budget_status_rejected(); |
| 34 | |
| 35 | } catch (\Exception $e) { |
| 36 | Log::channel('cron_update_budget_status_rejected')->error($e->getMessage()); |
| 37 | } |
| 38 | |
| 39 | } |
| 40 | } |