Issues (49)

app/Events/ArtistInformationFetched.php (1 issue)

Severity
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
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