mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
33 lines
578 B
PHP
33 lines
578 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Artist;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class ArtistInformationFetched
|
|
{
|
|
use SerializesModels;
|
|
|
|
private $artist;
|
|
private $information;
|
|
|
|
public function __construct(Artist $artist, array $information)
|
|
{
|
|
$this->artist = $artist;
|
|
$this->information = $information;
|
|
}
|
|
|
|
public function getArtist(): Artist
|
|
{
|
|
return $this->artist;
|
|
}
|
|
|
|
/**
|
|
* @return array<mixed>
|
|
*/
|
|
public function getInformation(): array
|
|
{
|
|
return $this->information;
|
|
}
|
|
}
|