Completed
Push — discuss ( 21bc4b...031d9d )
by Fèvre
03:19
created

CommentWasDeletedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace Xetaravel\Events\Discuss;
3
4
use Xetaravel\Models\DiscussComment;
5
use Xetaravel\Models\User;
6
7
class CommentWasDeletedEvent
8
{
9
    /**
10
     * The user instance.
11
     *
12
     * @var \Xetaravel\Models\User
13
     */
14
    public $user;
15
16
    /**
17
     * The comment instance.
18
     *
19
     * @var \Xetaravel\Models\DiscussComment
20
     */
21
    public $comment;
22
23
    /**
24
     * Create a new event instance.
25
     *
26
     * @param \Xetaravel\Models\DiscussComment $comment
27
     * @param \Xetaravel\Models\User $user
28
     */
29
    public function __construct(DiscussComment $comment, User $user)
30
    {
31
        $this->comment = $comment;
32
        $this->user = $user;
33
    }
34
}
35