コード例 #1
0
ファイル: App.php プロジェクト: adamdburton/Steam
 /**
  * @param $apps
  *
  * @return Collection
  */
 protected function convertGames($apps)
 {
     $convertedApps = new Collection();
     foreach ($apps as $app) {
         if (isset($app->data)) {
             $convertedApps->add(new AppContainer($app->data));
         }
     }
     return $convertedApps;
 }
コード例 #2
0
ファイル: Player.php プロジェクト: adamdburton/Steam
 private function convertGames($games)
 {
     $convertedGames = new Collection();
     foreach ($games as $game) {
         $convertedGames->add(new Game($game));
     }
     return $convertedGames;
 }