Passed
Push — master ( 4c3e72...46eb59 )
by Arthur
10:39
created

WebNotificationEvent::broadcastWith()   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
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 14.10.18
6
 * Time: 21:43.
7
 */
8
9
namespace Modules\Notification\Events;
10
11
use Illuminate\Notifications\Events\BroadcastNotificationCreated;
12
13
class WebNotificationEvent extends BroadcastNotificationCreated
14
{
15
    public function broadcastAs()
16
    {
17
        return 'notification.created';
18
    }
19
20
    /**
21
     * Get the data that should be sent with the broadcasted event.
22
     *
23
     * @return array
24
     */
25
    public function broadcastWith()
26
    {
27
        return $this->data;
28
    }
29
}
30