src/Request/RequestOptions.php
public function setSearchTerm($searchTerm)
  {
    if (!is_scalar($searchTerm))
    {
      throw new \Exception("Search term must be a string");
    }

    $this->searchTerm = trim($searchTerm);

    return $this;
  }
public function setSearchTerm($searchTerm)
  {
    if (!is_scalar($searchTerm))
    {
      throw new \Exception("Search term must be a string");
    }

    $this->searchTerm = trim($searchTerm);

    return $this;
  }
public function setSearchTerm ( $ searchTerm ) { if ( ! is_scalar ( $ searchTerm ) ) { throw new \ Exception ( "Search term must be a string" ) ; } $ this -> searchTerm = trim ( $ searchTerm ) ; return $ this ; }
Set a search term for the request

@param $searchTerm

@return $this
@throws \Exception
Set a search term for the request