1 | <?php namespace nyx\notify\jobs; |
||
15 | class Enqueue implements \Illuminate\Contracts\Queue\ShouldQueue |
||
16 | { |
||
17 | /** |
||
18 | * The traits of a Notification Queue Handler instance. |
||
19 | */ |
||
20 | use \Illuminate\Bus\Queueable, \Illuminate\Queue\SerializesModels; |
||
21 | |||
22 | /** |
||
23 | * @var mixed The entities which shall receive the wrapped Notification. |
||
24 | */ |
||
25 | protected $notifiables; |
||
26 | |||
27 | /** |
||
28 | * @var interfaces\Notification The Notification that shall be sent. |
||
29 | */ |
||
30 | protected $notification; |
||
31 | |||
32 | /** |
||
33 | * Creates a new Enqueue Job instance. |
||
34 | * |
||
35 | * @param mixed $notifiables The entities which shall receive the wrapped Notification. |
||
36 | * @param interfaces\Notification $notification The Notification that shall be sent. |
||
37 | */ |
||
38 | public function __construct($notifiables, interfaces\Notification $notification) |
||
43 | |||
44 | /** |
||
45 | * Sends the wrapped Notification. |
||
46 | * |
||
47 | * @param interfaces\Dispatcher $dispatcher |
||
48 | */ |
||
49 | public function handle(interfaces\Dispatcher $dispatcher) |
||
53 | } |
||
54 |