2018-08-19 09:05:33 +00:00
|
|
|
<?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;
|
|
|
|
}
|
|
|
|
|
2018-08-24 15:27:19 +00:00
|
|
|
public function getArtist(): Artist
|
2018-08-19 09:05:33 +00:00
|
|
|
{
|
|
|
|
return $this->artist;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-08-24 15:27:19 +00:00
|
|
|
* @return mixed[]
|
2018-08-19 09:05:33 +00:00
|
|
|
*/
|
2018-08-24 15:27:19 +00:00
|
|
|
public function getInformation(): array
|
2018-08-19 09:05:33 +00:00
|
|
|
{
|
|
|
|
return $this->information;
|
|
|
|
}
|
|
|
|
}
|