AddGroupToRoleEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Fabrica\Events;
4
5
use Fabrica\Events\Event;
6
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
7
use Illuminate\Queue\SerializesModels;
8
9
class AddGroupToRoleEvent extends Event
10
{
11
    use SerializesModels;
12
13
    public $group_ids;
14
15
    public $project_key;
16
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($group_ids, $project_key)
23
    {
24
        $this->group_ids = $group_ids;
25
        $this->project_key = $project_key;
26
    }
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