ModuleEvent::broadcastOn()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Fabrica\Events;
3
4
use Fabrica\Events\Event;
5
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
6
use Illuminate\Queue\SerializesModels;
7
8
class ModuleEvent extends Event
9
{
10
    use SerializesModels;
11
12
    public $project_key;
13
14
    public $user;
15
16
    public $param;
17
    /**
18
     * Create a new event instance.
19
     *
20
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
21
     */
22
    public function __construct($project_key, $user, $param=[])
23
    {
24
        $this->project_key   = $project_key;
25
        $this->user          = $user;
26
        $this->param         = $param;
27
    }
28
    /**
29
     * Get the channels the event should be broadcast on.
30
     *
31
     * @return array
32
     */
33
    public function broadcastOn()
34
    {
35
        return [];
36
    }
37
}
38