/**
* @param $keyword
* @param $param
*
* @return TwitterSearchResult
*/
private function search($keyword, $param)
{
$params = ['q' => $keyword, 'count' => self::COUNT, 'lang' => self::LANG, 'result_type' => 'recent', 'include_entities' => 'false'];
$params = array_merge($params, $param);
$res = new TwitterSearchResult($this->twitterOAuth->get('search/tweets', $params));
$res->meta->max_id = $res->search_metadata->max_id_str;
parse_str(trim($res->search_metadata->next_results, '?'), $next);
$res->meta->next_id = isset($next['max_id']) ? $next['max_id'] : null;
return $res;
}