PingFailure   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A broadcastOn() 0 4 1
1
<?php
2
3
namespace App\Events;
4
5
use App\Events\Event;
6
use App\Ping;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
9
10
class PingFailure extends Event
11
{
12
    use SerializesModels;
13
14
    /**
15
     * @var Ping
16
     */
17
    public $ping;
18
19
    /**
20
     * Create a new event instance.
21
     */
22
    public function __construct(Ping $ping)
23
    {
24
        $this->ping = $ping;
25
    }
26
27
    /**
28
     * Get the channels the event should be broadcast on.
29
     *
30
     * @return array
31
     */
32
    public function broadcastOn()
33
    {
34
        return [];
35
    }
36
}
37