コード例 #1
0
 public static function testNormalizeServices()
 {
     $services = array();
     $serviceResponse = array();
     $dummyResponse = self::createDummyBusScheduleResponseObjet();
     foreach ($dummyResponse->out->Schedule as $service) {
         $serviceResponse = BusScheduleFactory::createFromXmlResponse($service);
     }
     $services[] = $serviceResponse;
     return $services;
 }
コード例 #2
0
 protected static function normalizeServices($xmlServices)
 {
     $services = array();
     foreach ($xmlServices->Record as $service) {
         $serviceResponse = BusScheduleFactory::createFromXmlResponse($service);
         $services[] = $serviceResponse;
     }
     return $services;
 }