@@ -24,6 +24,9 @@ discard block |
||
| 24 | 24 | return new static($api); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param integer $limit |
|
| 29 | + */ |
|
| 27 | 30 | private function fetchTopTracks($username, $limit) |
| 28 | 31 | { |
| 29 | 32 | $params = [ |
@@ -85,6 +88,9 @@ discard block |
||
| 85 | 88 | return $lovedTracks; |
| 86 | 89 | } |
| 87 | 90 | |
| 91 | + /** |
|
| 92 | + * @param integer $limit |
|
| 93 | + */ |
|
| 88 | 94 | private function fetchLovedTracks($username, $limit) |
| 89 | 95 | { |
| 90 | 96 | $params = [ |
@@ -94,6 +94,9 @@ discard block |
||
| 94 | 94 | throw new PlaylistDoesNotExist($name); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | + /** |
|
| 98 | + * @return string |
|
| 99 | + */ |
|
| 97 | 100 | private function getUserId() |
| 98 | 101 | { |
| 99 | 102 | if (isset($this->userId)) { |
@@ -120,6 +123,9 @@ discard block |
||
| 120 | 123 | return $createdPlaylist->id; |
| 121 | 124 | } |
| 122 | 125 | |
| 126 | + /** |
|
| 127 | + * @param string $name |
|
| 128 | + */ |
|
| 123 | 129 | private function assertValidPlaylistName($name) |
| 124 | 130 | { |
| 125 | 131 | if (!is_string($name)) { |