Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| UpdateBudgetStatusRejected | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 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 | use Illuminate\Http\Request; |
| 9 | |
| 10 | class UpdateBudgetStatusRejected extends Command |
| 11 | { |
| 12 | /** |
| 13 | * The name and signature of the console command. |
| 14 | * |
| 15 | * @var string |
| 16 | */ |
| 17 | protected $signature = 'update:budget-status-rejected'; |
| 18 | |
| 19 | /** |
| 20 | * The console command description. |
| 21 | * |
| 22 | * @var string |
| 23 | */ |
| 24 | protected $description = 'Update budget status rejected'; |
| 25 | |
| 26 | /** |
| 27 | * Create a new command instance. |
| 28 | * |
| 29 | * @return void |
| 30 | */ |
| 31 | public function __construct() |
| 32 | { |
| 33 | parent::__construct(); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Execute the console command. |
| 38 | * |
| 39 | * @return int |
| 40 | */ |
| 41 | public function handle() |
| 42 | { |
| 43 | try { |
| 44 | |
| 45 | $quotations = new Quotations(); |
| 46 | $quotations->update_budget_status_rejected(); |
| 47 | |
| 48 | } catch (\Exception $e) { |
| 49 | Log::channel('cron_update_budget_status_rejected')->error($e->getMessage()); |
| 50 | } |
| 51 | } |
| 52 | } |