ArtistInformationFetched   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 8
c 1
b 0
f 0
dl 0
loc 24
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getArtist() 0 3 1
A __construct() 0 4 1
A getInformation() 0 3 1
1
<?php
2
3
namespace App\Events;
4
5
use App\Models\Artist;
6
use Illuminate\Queue\SerializesModels;
7
8
class ArtistInformationFetched
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\ArtistInformationFetched: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    private $artist;
13
    private $information;
14
15 2
    public function __construct(Artist $artist, array $information)
16
    {
17 2
        $this->artist = $artist;
18 2
        $this->information = $information;
19 2
    }
20
21 1
    public function getArtist(): Artist
22
    {
23 1
        return $this->artist;
24
    }
25
26
    /**
27
     * @return mixed[]
28
     */
29 1
    public function getInformation(): array
30
    {
31 1
        return $this->information;
32
    }
33
}
34