/**
  * Lookup track from Spotify according URI
  * @access public
  * @param  string            $uri Spotify URI
  * @return SpotifyItem\Track
  */
 public function lookupTrack($uri)
 {
     // setup parameters
     $parameters = array(self::PARAM_URI => $this->generateUriParameter($uri, self::LOOKUP_TRACK));
     // lookup track from Spotify
     $rawResult = $this->send(self::LOOKUP_SERVIVE, '', $parameters);
     // return SpotifyItem\Track instance
     return SpotifyItem\Track::extractInfos($rawResult->track);
 }
 /**
  * Extract search tracks
  * @access protected
  * @param  \stdClass $rawResults Raw result from SpotifyService
  * @return ResultSet
  */
 protected function extractTracks($rawResults)
 {
     // are tracks available ?
     if (isset($rawResults->tracks) && is_array($rawResults->tracks)) {
         // iterate tracks
         foreach ($rawResults->tracks as $track) {
             // create Track instance
             $trackItem = Track::extractInfos($track);
             // store search result
             $this->addSearchResult($trackItem);
         }
     }
     // return ResultSet
     return $this;
 }