Passed
Push — master ( 617e52...ff4e9f )
by Arthur
35:51
created

ScriptWasReviewedEvent::broadcastOn()   A

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
use Modules\Script\Entities\ScriptReview;
8
9
class ScriptWasReviewedEvent extends Event
10
{
11
12
    /**
13
     * The listeners that will be fired when the event is dispatched.
14
     * @var array
15
     */
16
    public $listeners = [];
17
18
    /**
19
     * @var Script
20
     */
21
    public $scriptReview;
22
23
    /**
24
     * Create a new event instance.
25
     *
26
     */
27
    public function __construct(ScriptReview $scriptReview)
28
    {
29
        $this->scriptReview = $scriptReview;
0 ignored issues
show
Documentation Bug introduced by
It seems like $scriptReview of type Modules\Script\Entities\ScriptReview is incompatible with the declared type Modules\Script\Entities\Script of property $scriptReview.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
30
    }
31
32
    /**
33
     * Get the channels the event should be broadcast on.
34
     *
35
     * @return array
36
     */
37
    public function broadcastOn()
38
    {
39
        return [];
40
    }
41
}
42