original_string: public function userWeeklyTopArtists(string $username, \DateTime $startdate): Lastfm
      {
          $this->query = array_merge($this->query, [
              'method' => 'user.getWeeklyArtistChart',
              'user' => $username,
              'from' => $startdate->format('U'),
              'to' => $startdate->modify('+7 day')->format('U'),
          ]);
  
          $this->pluck = 'weeklyartistchart.artist';
  
          return $this;
      }
code: public function userWeeklyTopArtists(string $username, \DateTime $startdate): Lastfm
      {
          $this->query = array_merge($this->query, [
              'method' => 'user.getWeeklyArtistChart',
              'user' => $username,
              'from' => $startdate->format('U'),
              'to' => $startdate->modify('+7 day')->format('U'),
          ]);
  
          $this->pluck = 'weeklyartistchart.artist';
  
          return $this;
      }
code_tokens: public function userWeeklyTopArtists ( string $ username , \ DateTime $ startdate ) : Lastfm { $ this -> query = array_merge ( $ this -> query , [ 'method' => 'user.getWeeklyArtistChart' , 'user' => $ username , 'from' => $ startdate -> format ( 'U' ) , 'to' => $ startdate -> modify ( '+7 day' ) -> format ( 'U' ) , ] ) ; $ this -> pluck = 'weeklyartistchart.artist' ; return $ this ; }
docstring: Get an array of weekly top artists.
  
  @param string    $username
  @param \DateTime $startdate
  
  @return Lastfm
docstring_tokens: Get an array of weekly top artists .