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

PostWasDeletedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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