| 1 | <?php |
||
| 8 | class LastFmController extends Controller |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $sampleArtist = ['artist' => 'The Pierces']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * LastFm Object |
||
| 17 | * @var object; |
||
| 18 | */ |
||
| 19 | protected $lastfm; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Initialize the Controller with necessary arguments |
||
| 23 | */ |
||
| 24 | public function __construct() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Return all tweets to the LastFM API dashboard |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function getPage() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get Artist Info |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | private function getArtistInfo() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get Top Albums |
||
| 59 | * @return array |
||
| 60 | */ |
||
| 61 | private function getTopAlbums() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get Top Tracks |
||
| 70 | * @return array |
||
| 71 | */ |
||
| 72 | private function getTopTracks() |
||
| 78 | } |
||
| 79 |