mirror of
https://github.com/koel/koel
synced 2024-12-01 00:09:17 +00:00
33 lines
582 B
PHP
33 lines
582 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Album;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class AlbumInformationFetched extends Event
|
|
{
|
|
use SerializesModels;
|
|
|
|
private $album;
|
|
private $information;
|
|
|
|
public function __construct(Album $album, array $information)
|
|
{
|
|
$this->album = $album;
|
|
$this->information = $information;
|
|
}
|
|
|
|
public function getAlbum(): Album
|
|
{
|
|
return $this->album;
|
|
}
|
|
|
|
/**
|
|
* @return array<mixed>
|
|
*/
|
|
public function getInformation(): array
|
|
{
|
|
return $this->information;
|
|
}
|
|
}
|