code: private function setGateways(array $gateways)
      {
          $this->gateways = [];
          foreach ($gateways as $name => $gateway) {
              $this->addGateway($name, $gateway);
          }
      }
docs: @param array $gateways
  
  @return void