File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments