PostWasSolvedEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Xetaravel\Events\Rubies;
6
7
use Xetaravel\Models\DiscussPost;
8
use Xetaravel\Models\User;
9
10
class PostWasSolvedEvent
11
{
12
    /**
13
     * The post instance.
14
     *
15
     * @var DiscussPost
16
     */
17
    public $post;
18
19
    /**
20
     * The user instance.
21
     *
22
     * @var User
23
     */
24
    public $user;
25
26
    /**
27
     * Create a new event instance.
28
     *
29
     * @param DiscussPost $post
30
     * @param User $user
31
     */
32
    public function __construct(DiscussPost $post, User $user)
33
    {
34
        $this->post = $post;
35
        $this->user = $user;
36
    }
37
}
38