GedComProgressSent::broadcastWith()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 1
1
<?php
2
3
namespace App\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
7
8
class GedComProgressSent extends ShouldBroadcast
9
{
10
    public function __construct()
11
    {
12
    }
13
14
    /**
15
     * Get the channels the event should broadcast on.
16
     *
17
     * @return \Illuminate\Broadcasting\Channel|array
18
     */
19
    public function broadcastOn()
20
    {
21
        return new Channel('getcom-progress');
22
    }
23
24
    public function broadcastWith()
25
    {
26
        return [
27
            'data' => 'key',
28
        ];
29
    }
30
}
31
// class GedComProgressSent extends \GenealogiaWebsite\LaravelGedcom\Events\GedComProgressSent
32
// {
33
// }
34