Advertisement
Guest User

Untitled

a guest
Nov 11th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Jobs;
  4.  
  5. use App\Jobs\Job;
  6. use Illuminate\Queue\SerializesModels;
  7. use Illuminate\Queue\InteractsWithQueue;
  8. use Illuminate\Contracts\Bus\SelfHandling;
  9. use Illuminate\Contracts\Queue\ShouldQueue;
  10.  
  11. class Parse extends Job implements SelfHandling, ShouldQueue
  12. {
  13.     use InteractsWithQueue, SerializesModels;
  14.    
  15.     protected $url;
  16.  
  17.     /**
  18.      * Create a new job instance.
  19.      *
  20.      * @return void
  21.      */
  22.     public function __construct($url)
  23.     {
  24.         $this->url = $url;
  25.     }
  26.  
  27.     /**
  28.      * Execute the job.
  29.      *
  30.      * @return void
  31.      */
  32.     public function handle()
  33.     {
  34.         $url = $this->url;
  35.        
  36.         // Parse page.
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement