mirror of
https://github.com/koel/koel
synced 2024-12-25 03:53:05 +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);
|
|
}
|
|
}
|