mirror of
https://github.com/koel/koel
synced 2024-12-21 10:03:10 +00:00
33 lines
577 B
PHP
33 lines
577 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 mixed[]
|
|
*/
|
|
public function getInformation(): array
|
|
{
|
|
return $this->information;
|
|
}
|
|
}
|