Beispiel #1
0
 protected function copyLocations()
 {
     $locations = $this->source->getLocations();
     $copy = [];
     foreach ($locations as $location) {
         $copy[] = ['city' => $location->getCity(), 'region' => $location->getRegion(), 'zipCode' => $location->getPostalCode(), 'country' => $location->getCountry(), 'coordinates' => $location->getCoordinates()->getCoordinates()];
     }
     $this->target->setLocations($copy);
 }