コード例 #1
0
ファイル: DriverService.php プロジェクト: sam-higton/F1Data
 private function formatDriverCollection(\SimpleXMLElement $xml)
 {
     $responseCollection = new ResponseCollection("DriverCollection");
     foreach ($xml as $driver) {
         $responseCollection->addObject($this->formatDriver($driver));
     }
     return $responseCollection;
 }
コード例 #2
0
ファイル: LapService.php プロジェクト: sam-higton/F1Data
 private function formatTimingCollection(\SimpleXMLElement $xml)
 {
     $timingCollection = new ResponseCollection("TimingCollection");
     foreach ($xml as $timing) {
         $timingCollection->addObject($this->formatTimingObject($timing));
     }
     return $timingCollection;
 }