PostReply::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php namespace Taskforcedev\LaravelForum\Events;
2
3
use Illuminate\Queue\SerializesModels;
4
use Taskforcedev\LaravelForum\Models\ForumReply;
5
6
class PostReply extends Event
7
{
8
    use SerializesModels;
9
10
    public $user;
11
    public $reply;
12
13
    public function __construct(ForumReply $reply, $user)
14
    {
15
        $this->reply = $reply;
16
        $this->user = $user;
17
    }
18
19
    /**
20
     * Get the channels the event should be broadcast on.
21
     *
22
     * @return array
23
     */
24
    public function broadcastOn()
25
    {
26
        return ['laravel-forum'];
27
    }
28
}
29