maksimru /
composite-primary-keys
| 1 | <?php |
||
| 2 | |||
| 3 | namespace MaksimM\CompositePrimaryKeys\Tests\Stubs; |
||
| 4 | |||
| 5 | use Illuminate\Bus\Queueable; |
||
| 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
||
| 7 | use Illuminate\Queue\SerializesModels; |
||
| 8 | |||
| 9 | class TestJob implements ShouldQueue |
||
| 10 | { |
||
| 11 | use Queueable; |
||
| 12 | use SerializesModels; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 13 | |||
| 14 | private $model; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new job instance. |
||
| 18 | */ |
||
| 19 | public function __construct(TestUser $testUser) |
||
| 20 | { |
||
| 21 | $this->model = $testUser; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Execute the job. |
||
| 26 | */ |
||
| 27 | public function handle() |
||
| 28 | { |
||
| 29 | $this->model->update(['counter' => 3333]); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |