Event::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 0
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace App\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Broadcasting\PrivateChannel;
8
use Illuminate\Broadcasting\PresenceChannel;
9
use Illuminate\Foundation\Events\Dispatchable;
10
use Illuminate\Broadcasting\InteractsWithSockets;
11
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
12
13
class Event
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\Event: $id, $class, $connection
Loading history...
16
17
    /**
18
     * Create a new event instance.
19
     */
20
    public function __construct()
21
    {
22
        //
23
    }
24
25
    /**
26
     * Get the channels the event should broadcast on.
27
     *
28
     * @return \Illuminate\Broadcasting\Channel|array
29
     */
30
    public function broadcastOn()
31
    {
32
        return new PrivateChannel("channel-name");
33
    }
34
}
35