koel/app/Values/LastfmLoveTrackParameters.php

31 lines
620 B
PHP
Raw Normal View History

<?php
namespace App\Values;
2021-06-05 10:47:56 +00:00
final class LastfmLoveTrackParameters
{
2021-06-05 10:47:56 +00:00
private string $trackName;
private string $artistName;
private function __construct(string $trackName, string $artistName)
{
$this->trackName = $trackName;
$this->artistName = $artistName;
}
public static function make(string $trackName, string $artistName): self
{
return new self($trackName, $artistName);
}
public function getTrackName(): string
{
return $this->trackName;
}
public function getArtistName(): string
{
return $this->artistName;
}
}