| 1 | <?php |
||
| 12 | final class ArtistTopTracksBuilder |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $query; |
||
| 18 | |||
| 19 | private function __construct() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return ArtistTopTracksBuilder |
||
| 26 | */ |
||
| 27 | public static function forArtist(string $artist): self |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return ArtistTopTracksBuilder |
||
| 38 | */ |
||
| 39 | public static function forMbid(string $mbid): self |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return ArtistTopTracksBuilder |
||
| 50 | */ |
||
| 51 | public function autocorrect(bool $autocorrect): self |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return ArtistTopTracksBuilder |
||
| 60 | */ |
||
| 61 | public function limit(int $limit): self |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return ArtistTopTracksBuilder |
||
| 70 | */ |
||
| 71 | public function page(int $page): self |
||
| 77 | |||
| 78 | public function getQuery(): array |
||
| 82 | } |
||
| 83 |