RecentlyUpdatedBookingsBlockoutsPullCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
1
<?php
2
3
namespace IproSync\Console\Commands;
4
5
use Illuminate\Console\Command;
6
use IproSync\Jobs\Bookings\RecentlyUpdatedPull;
7
8
/**
9
 * @deprecated
10
 */
11
class RecentlyUpdatedBookingsBlockoutsPullCommand extends Command
12
{
13
    protected $signature = 'iprosoftware-sync:recently-updated-bookings-blockouts:pull
14
     {--minutes_ago=60 : Last updated since.}
15
     {--queue= : Queue to dispatch job.}
16
    ';
17
18
    protected $description = 'Pull ipro recently updated bookings blockouts';
19
20
    public function handle(): int
21
    {
22
        RecentlyUpdatedPull::dispatch((int)$this->option('minutes_ago'))
23
            ->onQueue($this->option('queue'));
24
25
        return 0;
26
    }
27
}
28