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

CategoryWasChangedEvent::__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 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