mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +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);
|
|
}
|
|
}
|