1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace Hhxsv5\LaravelS\Swoole\Task; |
||
4 | |||
5 | use Illuminate\Queue\SerializesModels; |
||
0 ignored issues
–
show
The type
Illuminate\Queue\SerializesModels was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
6 | |||
7 | abstract class Event extends BaseTask |
||
0 ignored issues
–
show
|
|||
8 | { |
||
9 | use SerializesModels; |
||
10 | |||
11 | /** |
||
12 | * The listeners for this event. |
||
13 | * @return array |
||
0 ignored issues
–
show
|
|||
14 | */ |
||
15 | protected $listeners = []; |
||
16 | |||
17 | /** |
||
18 | * Get the listener list for this event. |
||
19 | * @return array |
||
0 ignored issues
–
show
|
|||
20 | */ |
||
21 | public function getListeners() |
||
22 | { |
||
23 | return $this->listeners; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Trigger an event |
||
28 | * @param Event $event |
||
0 ignored issues
–
show
|
|||
29 | * @return bool |
||
0 ignored issues
–
show
|
|||
30 | */ |
||
31 | public static function fire(self $event) |
||
32 | { |
||
33 | return $event->task($event); |
||
34 | } |
||
35 | } |