koel/app/Values/ExcerptSearchResult.php
2024-07-06 17:45:04 +02:00

21 lines
487 B
PHP

<?php
namespace App\Values;
use Illuminate\Support\Collection;
final class ExcerptSearchResult
{
private function __construct(
public Collection $songs,
public Collection $artists,
public Collection $albums,
public Collection $podcasts
) {
}
public static function make(Collection $songs, Collection $artists, Collection $albums, Collection $podcasts): self
{
return new self($songs, $artists, $albums, $podcasts);
}
}