public static function factory(Storage $storage, $row) { $ort = new Ort($storage); $ort->setOrtID($row["ortid"]); $ort->setPLZ($row["plz"]); $ort->setLabel($row["label"]); $ort->setLatitude($row["latitude"]); $ort->setLongitude($row["longitude"]); $ort->setStateID($row["stateid"]); return $ort; }