koel/app/Events/ArtistInformationFetched.php

32 lines
579 B
PHP
Raw Normal View History

2018-08-19 09:05:33 +00:00
<?php
namespace App\Events;
use App\Models\Artist;
use Illuminate\Queue\SerializesModels;
class ArtistInformationFetched
{
use SerializesModels;
2021-06-05 10:47:56 +00:00
private Artist $artist;
private array $information;
2018-08-19 09:05:33 +00:00
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;
}
2021-06-05 10:47:56 +00:00
/** @return array<mixed> */
2018-08-24 15:27:19 +00:00
public function getInformation(): array
2018-08-19 09:05:33 +00:00
{
return $this->information;
}
}