mirror of
https://github.com/koel/koel
synced 2024-12-22 10:33:16 +00:00
37 lines
594 B
PHP
37 lines
594 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;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return Artist
|
||
|
*/
|
||
|
public function getArtist()
|
||
|
{
|
||
|
return $this->artist;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public function getInformation()
|
||
|
{
|
||
|
return $this->information;
|
||
|
}
|
||
|
}
|