33 lines
852 B
PHP
33 lines
852 B
PHP
<?php
|
|
|
|
namespace Slack\Jobs;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Support\Arr;
|
|
|
|
abstract class Job implements ShouldQueue
|
|
{
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Queueable Jobs
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This job base class provides a central location to place any logic that
|
|
| is shared across all of your jobs. The trait included with the class
|
|
| provides access to the "queueOn" and "delay" queue helper methods.
|
|
|
|
|
*/
|
|
|
|
use InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
protected $_data = [];
|
|
|
|
public function __get($key)
|
|
{
|
|
return Arr::get($this->_data,$key);
|
|
}
|
|
}
|