mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
21 lines
487 B
PHP
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);
|
|
}
|
|
}
|