src/Request/RequestOptions.php
public function toArray()
  {
    $params = [];

    if (isset($this->searchTerm))
    {
      $params['q'] = $this->searchTerm;
    }

    if (isset($this->parameters))
    {
      foreach ($this->parameters as $paramKey => $paramVal)
      {
        $params[$paramKey] = $paramVal;
      }
    }

    return $params;
  }
public function toArray()
  {
    $params = [];

    if (isset($this->searchTerm))
    {
      $params['q'] = $this->searchTerm;
    }

    if (isset($this->parameters))
    {
      foreach ($this->parameters as $paramKey => $paramVal)
      {
        $params[$paramKey] = $paramVal;
      }
    }

    return $params;
  }
public function toArray ( ) { $ params = [ ] ; if ( isset ( $ this -> searchTerm ) ) { $ params [ 'q' ] = $ this -> searchTerm ; } if ( isset ( $ this -> parameters ) ) { foreach ( $ this -> parameters as $ paramKey => $ paramVal ) { $ params [ $ paramKey ] = $ paramVal ; } } return $ params ; }
This should no longer be needed
todo remove

@return array
@deprecated
This should no longer be needed todo remove