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; }
private function processResponseCollection(ResponseCollection $collection) { if ($collection->getCollectionName() == "DriverCollection") { foreach ($collection->getCollection() as $object) { if (!$this->processResponseObject($object)) { //return false; } } return $collection; } else { return false; } }
public function processResponseCollection(ResponseCollection $collection) { foreach ($collection->getCollection() as $object) { $this->processResponseObject($object); } }