Completed
Push — discuss ( 472fcb...21bc4b )
by Fèvre
16:38
created

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