phanan /
koel
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Events; |
||
| 4 | |||
| 5 | use App\Models\Album; |
||
| 6 | use Illuminate\Queue\SerializesModels; |
||
| 7 | |||
| 8 | class AlbumInformationFetched extends Event |
||
| 9 | { |
||
| 10 | use SerializesModels; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | private $album; |
||
| 13 | private $information; |
||
| 14 | |||
| 15 | 2 | public function __construct(Album $album, array $information) |
|
| 16 | { |
||
| 17 | 2 | $this->album = $album; |
|
| 18 | 2 | $this->information = $information; |
|
| 19 | 2 | } |
|
| 20 | |||
| 21 | 1 | public function getAlbum(): Album |
|
| 22 | { |
||
| 23 | 1 | return $this->album; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return mixed[] |
||
| 28 | */ |
||
| 29 | 1 | public function getInformation(): array |
|
| 30 | { |
||
| 31 | 1 | return $this->information; |
|
| 32 | } |
||
| 33 | } |
||
| 34 |