koel/app/Events/AlbumInformationFetched.php

32 lines
582 B
PHP
Raw Normal View History

2018-08-19 09:05:33 +00:00
<?php
namespace App\Events;
use App\Models\Album;
use Illuminate\Queue\SerializesModels;
class AlbumInformationFetched extends Event
{
use SerializesModels;
2021-06-05 10:47:56 +00:00
private Album $album;
private array $information;
2018-08-19 09:05:33 +00:00
public function __construct(Album $album, array $information)
{
$this->album = $album;
$this->information = $information;
}
2018-08-24 15:27:19 +00:00
public function getAlbum(): Album
2018-08-19 09:05:33 +00:00
{
return $this->album;
}
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;
}
}