mirror of
https://github.com/koel/koel
synced 2025-01-11 12:18:43 +00:00
31 lines
582 B
PHP
31 lines
582 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Album;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class AlbumInformationFetched extends Event
|
|
{
|
|
use SerializesModels;
|
|
|
|
private Album $album;
|
|
private array $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;
|
|
}
|
|
}
|