Completed
Push — master ( c7e879...390e33 )
by Fèvre
02:26
created

PostWasDeletedEvent   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\DiscussConversation;
5
use Xetaravel\Models\User;
6
7
class PostWasDeletedEvent
8
{
9
    /**
10
     * The conversation instance.
11
     *
12
     * @var \Xetaravel\Models\DiscussConversation
13
     */
14
    public $conversation;
15
16
    /**
17
     * The user instance.
18
     *
19
     * @var \Xetaravel\Models\User
20
     */
21
    public $user;
22
23
    /**
24
     * Create a new event instance.
25
     *
26
     * @param \Xetaravel\Models\DiscussConversation $conversation
27
     * @param \Xetaravel\Models\User $user
28
     */
29
    public function __construct(DiscussConversation $conversation, User $user)
30
    {
31
        $this->conversation = $conversation;
32
        $this->user = $user;
33
    }
34
}
35