ScriptWasDeletedEvent::broadcastOn()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Modules\Script\Events;
4
5
use Foundation\Abstracts\Events\Event;
6
use Modules\Script\Entities\Script;
7
8
class ScriptWasDeletedEvent extends Event
9
{
10
11
    /**
12
     * The listeners that will be fired when the event is dispatched.
13
     * @var array
14
     */
15
    public $listeners = [];
16
17
    /**
18
     * @var Script
19
     */
20
    public $script;
21
22
    /**
23
     * Create a new event instance.
24
     *
25
     */
26
    public function __construct(Script $script)
27
    {
28
        $this->script = $script;
29
    }
30
31
    /**
32
     * Get the channels the event should be broadcast on.
33
     *
34
     * @return array
35
     */
36
    public function broadcastOn()
37
    {
38
        return [];
39
    }
40
}
41