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;
|
|
|
|
|
|
|
|
private $album;
|
|
|
|
private $information;
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-08-24 15:27:19 +00:00
|
|
|
* @return mixed[]
|
2018-08-19 09:05:33 +00:00
|
|
|
*/
|
2018-08-24 15:27:19 +00:00
|
|
|
public function getInformation(): array
|
2018-08-19 09:05:33 +00:00
|
|
|
{
|
|
|
|
return $this->information;
|
|
|
|
}
|
|
|
|
}
|