NewFeedback   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A broadcastOn() 0 2 1
1
<?php
2
3
namespace Mydnic\Kustomer\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
use Mydnic\Kustomer\Feedback;
13
14
class NewFeedback implements ShouldBroadcast
15
{
16
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Mydnic\Kustomer\Events\NewFeedback: $id, $class, $connection, $relations
Loading history...
17
18
    public $feedback;
19
20
    /**
21
     * Create a new event instance.
22
     *
23
     * @return void
24
     */
25
    public function __construct(Feedback $feedback)
26
    {
27
        $this->feedback = $feedback;
28
    }
29
30
    /**
31
     * Get the channels the event should broadcast on.
32
     *
33
     * @return \Illuminate\Broadcasting\Channel|array
34
     */
35
    public function broadcastOn()
36
    {
37
        // return new PrivateChannel('channel-name');
38
    }
39
}
40