Passed
Push — Leaderboard ( 298845 )
by Fèvre
06:39
created

LeaderboardEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
namespace Xetaravel\Events\Badges;
3
4
use Xetaravel\Models\User;
5
6
class LeaderboardEvent
7
{
8
    public $user;
9
10
    /**
11
     * Create a new event instance.
12
     *
13
     * @param \Xetaravel\Models\User $user
14
     */
15
    public function __construct(User $user)
16
    {
17
        $this->user = $user;
18
    }
19
}
20