VersionEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A broadcastOn() 0 4 1
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 VersionEvent 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,array $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