示例#1
0
 private function formatDriverCollection(\SimpleXMLElement $xml)
 {
     $responseCollection = new ResponseCollection("DriverCollection");
     foreach ($xml as $driver) {
         $responseCollection->addObject($this->formatDriver($driver));
     }
     return $responseCollection;
 }
示例#2
0
 private function formatTimingCollection(\SimpleXMLElement $xml)
 {
     $timingCollection = new ResponseCollection("TimingCollection");
     foreach ($xml as $timing) {
         $timingCollection->addObject($this->formatTimingObject($timing));
     }
     return $timingCollection;
 }