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