Exemplo n.º 1
0
 public static function FromDatabase(array $row)
 {
     $expedition = new Expedition();
     $fleet = ShipFleet::FromDatabaseByID($row['fleetID']);
     $expedition->Fleet($fleet);
     $coordinates = new Coordinates($row['galaxy_position'], $row['system_position'], $row['planet_position']);
     $expedition->Target($coordinates);
     $expedition->ScheduledTime($row['scheduled_time']);
     return $expedition;
 }