PostWasSolvedEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 26
rs 10
c 1
b 0
f 0
wmc 1

1 Method

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