| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TrackActionJob extends AbstractJob |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Delete the job if its models no longer exist. |
||
| 16 | * |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | public $deleteWhenMissingModels = true; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string Queue to use |
||
| 23 | */ |
||
| 24 | public $queue = 'tracking'; |
||
| 25 | |||
| 26 | public $action; |
||
| 27 | public $model; |
||
| 28 | public $model_changes; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Track a user's action. |
||
| 32 | * |
||
| 33 | * @param string $action |
||
| 34 | * @param Model|Collection $model |
||
| 35 | */ |
||
| 36 | public function __construct(string $action, $model) |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Execute the job. |
||
| 50 | * |
||
| 51 | * @return void |
||
| 52 | */ |
||
| 53 | public function handle() |
||
| 65 |