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

TitleWasChangedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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