Adding rest_total_hits_as_int to php-client search() method

Hi How do i add rest_total_hits_as_int=true to search() method in php-client? i see in documentation below, it's mentioned in msearch method, but not in search. can we add rest_total_hits_as_int to search?

https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/ElasticsearchPHP_Endpoints.html#Elasticsearch_Clientsearch_search

looks like we can just pass in the parameter and it works
'rest_total_hits_as_int' => true,