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