Skip to content

Commit 710b8a5

Browse files
committed
Allow playlist to be null in CurrentSongDto to match API response
1 parent 3949280 commit 710b8a5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Dto/CurrentSongDto.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CurrentSongDto
3131
protected $duration;
3232

3333
/**
34-
* @var string
34+
* @var string|null
3535
*/
3636
protected $playlist;
3737

@@ -51,7 +51,7 @@ class CurrentSongDto
5151
* @param int $songHistoryId
5252
* @param int $playedAt
5353
* @param int $duration
54-
* @param string $playlist
54+
* @param string|null $playlist
5555
* @param bool $isRequest
5656
* @param SongDto $song
5757
*/
@@ -61,7 +61,7 @@ public function __construct(
6161
int $songHistoryId,
6262
int $playedAt,
6363
int $duration,
64-
string $playlist,
64+
?string $playlist,
6565
bool $isRequest,
6666
SongDto $song
6767
) {
@@ -176,19 +176,19 @@ public function setDuration(int $duration): CurrentSongDto
176176
}
177177

178178
/**
179-
* @return string
179+
* @return string|null
180180
*/
181-
public function getPlaylist(): string
181+
public function getPlaylist(): ?string
182182
{
183183
return $this->playlist;
184184
}
185185

186186
/**
187-
* @param string $playlist
187+
* @param string|null $playlist
188188
*
189189
* @return CurrentSongDto
190190
*/
191-
public function setPlaylist(string $playlist): CurrentSongDto
191+
public function setPlaylist(?string $playlist): CurrentSongDto
192192
{
193193
$this->playlist = $playlist;
194194

0 commit comments

Comments
 (0)