Completed
Push — master ( d44ef5...c7e879 )
by Fèvre
12s
created

TitleWasChangedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
namespace Xetaravel\Events\Discuss;
3
4
use Xetaravel\Models\DiscussConversation;
5
6
class TitleWasChangedEvent
7
{
8
    /**
9
     * The conversation instance.
10
     *
11
     * @var \Xetaravel\Models\DiscussConversation
12
     */
13
    public $conversation;
14
15
    /**
16
     * The new title.
17
     *
18
     * @var string
19
     */
20
    public $title;
21
22
    /**
23
     * The old title.
24
     *
25
     * @var string
26
     */
27
    public $oldTitle;
28
29
    /**
30
     * Create a new event instance.
31
     *
32
     * @param \Xetaravel\Models\DiscussConversation $conversation
33
     * @param string $title
34
     * @param string $oldTitle
35
     */
36
    public function __construct(DiscussConversation $conversation, string $title, string $oldTitle)
37
    {
38
        $this->conversation = $conversation;
39
        $this->title = $title;
40
        $this->oldTitle = $oldTitle;
41
    }
42
}
43