koel/app/Values/ExcerptSearchResult.php

18 lines
391 B
PHP
Raw Normal View History

2022-06-10 10:47:46 +00:00
<?php
namespace App\Values;
2022-06-10 10:47:46 +00:00
use Illuminate\Support\Collection;
final class ExcerptSearchResult
{
private function __construct(public Collection $songs, public Collection $artists, public Collection $albums)
{
}
public static function make(Collection $songs, Collection $artists, Collection $albums): self
{
return new self($songs, $artists, $albums);
}
}