Passed
Push — master ( 3e245e...ef140d )
by Phan
07:34
created

SongStartedPlaying   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
c 0
b 0
f 0
dl 0
loc 11
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace App\Events;
4
5
use App\Models\Song;
6
use App\Models\User;
7
use Illuminate\Queue\SerializesModels;
8
9
class SongStartedPlaying extends Event
10
{
11
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\SongStartedPlaying: $id, $relations, $class, $connection, $keyBy
Loading history...
12
13
    public $song;
14
    public $user;
15
16 2
    public function __construct(Song $song, User $user)
17
    {
18 2
        $this->song = $song;
19 2
        $this->user = $user;
20 2
    }
21
}
22