koel/app/Services/NullMusicEncyclopedia.php
2024-02-24 11:59:54 +07:00

22 lines
510 B
PHP

<?php
namespace App\Services;
use App\Models\Album;
use App\Models\Artist;
use App\Services\Contracts\MusicEncyclopedia;
use App\Values\AlbumInformation;
use App\Values\ArtistInformation;
class NullMusicEncyclopedia implements MusicEncyclopedia
{
public function getArtistInformation(Artist $artist): ?ArtistInformation
{
return ArtistInformation::make();
}
public function getAlbumInformation(Album $album): ?AlbumInformation
{
return AlbumInformation::make();
}
}