AddGroupToRoleEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 29
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A broadcastOn() 0 4 1
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