original_string: public function addQueryParameters($queryString)
      {
          $queries = preg_split('/&(amp;)?/i', $queryString);
  
          foreach ($queries as $v) {
              $explode = explode('=', $v);
  
              $name  = $explode[0];
              $value = isset($explode[1]) ? $explode[1] : '';
              $rpos  = strrpos($name, '?');
  
              if ($rpos !== false) {
                  $name = substr($name, ($rpos + 1));
              }
  
              if (empty($name)) {
                  continue;
              }
  
              $this->setQueryParameter($name, $value);
          }
  
          return $this;
      }
code: public function addQueryParameters($queryString)
      {
          $queries = preg_split('/&(amp;)?/i', $queryString);
  
          foreach ($queries as $v) {
              $explode = explode('=', $v);
  
              $name  = $explode[0];
              $value = isset($explode[1]) ? $explode[1] : '';
              $rpos  = strrpos($name, '?');
  
              if ($rpos !== false) {
                  $name = substr($name, ($rpos + 1));
              }
  
              if (empty($name)) {
                  continue;
              }
  
              $this->setQueryParameter($name, $value);
          }
  
          return $this;
      }
code_tokens: public function addQueryParameters ( $ queryString ) { $ queries = preg_split ( '/&(amp;)?/i' , $ queryString ) ; foreach ( $ queries as $ v ) { $ explode = explode ( '=' , $ v ) ; $ name = $ explode [ 0 ] ; $ value = isset ( $ explode [ 1 ] ) ? $ explode [ 1 ] : '' ; $ rpos = strrpos ( $ name , '?' ) ; if ( $ rpos !== false ) { $ name = substr ( $ name , ( $ rpos + 1 ) ) ; } if ( empty ( $ name ) ) { continue ; } $ this -> setQueryParameter ( $ name , $ value ) ; } return $ this ; }
docstring: Absorb the query parameters from a query string.
  
  @param string $queryString The query string.
  
  @return UrlBuilder
docstring_tokens: Absorb the query parameters from a query string .