ScriptWasDeletedEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 31
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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