1 | <?php |
||
13 | class SendBearyChat implements ShouldQueue |
||
14 | { |
||
15 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
16 | |||
17 | /** |
||
18 | * The BearyChat client. |
||
19 | * |
||
20 | * @var \ElfSundae\BearyChat\Client |
||
21 | */ |
||
22 | protected $client; |
||
23 | |||
24 | /** |
||
25 | * The Message instance to be sent. |
||
26 | * |
||
27 | * @var \ElfSundae\BearyChat\Message |
||
28 | */ |
||
29 | protected $message; |
||
30 | |||
31 | /** |
||
32 | * Create a new job instance. |
||
33 | * |
||
34 | * @param mixed $message |
||
35 | */ |
||
36 | public function __construct($message = null) |
||
44 | |||
45 | /** |
||
46 | * Set the BearyChat client. |
||
47 | * |
||
48 | * @param \ElfSundae\BearyChat\Client|string $client |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function client($client) |
||
61 | |||
62 | /** |
||
63 | * Execute the job. |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | public function handle() |
||
75 | |||
76 | /** |
||
77 | * Any unhandled methods will be sent to the Message instance. |
||
78 | * |
||
79 | * @param string $method |
||
80 | * @param array $parameters |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function __call($method, $parameters) |
||
93 | } |
||
94 |