public function mergeFleet(Fleet $other) { foreach ($other->getIterator() as $idShipType => $shipType) { $this->addShipType($shipType); } }
public function mergeFleet(Fleet $other) { foreach ($other->getIterator() as $idShipType => $shipType) { $this->addShipType($shipType); } }