GedComProgressSent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

3 Methods

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