123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace App\Jobs\GrowingIO;
- use Illuminate\Bus\Queueable;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- class EachLikeReportJob extends BaseReportJob implements ShouldQueue
- {
- use Dispatchable;
- use InteractsWithQueue;
- use Queueable;
- use SerializesModels;
- protected $uid;
- protected $like_uid;
- protected $is_like_each;
- /**
- * Create a new job instance.
- *
- * @return void
- */
- public function __construct($uid, $like_uid, $is_like_each)
- {
- $this->uid = $uid;
- $this->like_uid = $like_uid;
- $this->is_like_each = $is_like_each;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function doHandle()
- {
- $this->doReport(self::EACH_LIKE, $this->uid, [
- 'related_id' => $this->like_uid,
- 'like_each' => $this->is_like_each,
- ]);
- }
- }
|