code: private function getParams(Connection $connection): array
      {
          $params = $connection->getParams();
          if (isset($params['master'])) {
              $params = $params['master'];
          }
  
          return $params;
      }
docs: @param Connection $connection
  
  @return array