original_string: public function dns($dns = null)
      {
          if ($dns) {
              $this->_config['dns'] = $dns;
              return $dns;
          }
  
          if (isset($this->_config['dns'])) {
              return $this->_config['dns'];
          }
  
          return 'mongodb://localhost:27017';
      }
code: public function dns($dns = null)
      {
          if ($dns) {
              $this->_config['dns'] = $dns;
              return $dns;
          }
  
          if (isset($this->_config['dns'])) {
              return $this->_config['dns'];
          }
  
          return 'mongodb://localhost:27017';
      }
code_tokens: public function dns ( $ dns = null ) { if ( $ dns ) { $ this -> _config [ 'dns' ] = $ dns ; return $ dns ; } if ( isset ( $ this -> _config [ 'dns' ] ) ) { return $ this -> _config [ 'dns' ] ; } return 'mongodb://localhost:27017' ; }
docstring: Gets or Sets the DNS string for our connection in our configuration array.  If no DNS string is provided, the
  default localhost DNS is returned.
  
  @param null $dns
  @return null|string
docstring_tokens: Gets or Sets the DNS string for our connection in our configuration array . If no DNS string is provided the default localhost DNS is returned .