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

CategoryWasChangedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 38
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 CategoryWasChangedEvent
7
{
8
    /**
9
     * The conversation instance.
10
     *
11
     * @var \Xetaravel\Models\DiscussConversation
12
     */
13
    public $conversation;
14
15
    /**
16
     * The new category id.
17
     *
18
     * @var int
19
     */
20
    public $category;
21
22
    /**
23
     * The old category id.
24
     *
25
     * @var int
26
     */
27
    public $oldCategory;
28
29
    /**
30
     * Create a new event instance.
31
     *
32
     * @param \Xetaravel\Models\DiscussConversation $conversation
33
     * @param int $category
34
     * @param int $oldCategory
35
     *
36
     */
37
    public function __construct(DiscussConversation $conversation, int $category, int $oldCategory)
38
    {
39
        $this->conversation = $conversation;
40
        $this->category = $category;
41
        $this->oldCategory = $oldCategory;
42
    }
43
}
44