PingFailure::__construct()   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 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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