public function setQueryString($query_string = [])
    {
        if (!is_array($query_string) && is_string($query_string)) {
            $query_string = parse_str($query_string);
        }
        if (count($query_string) == 0) {
            $this->query_string = [];
        } else {
            $this->query_string = $query_string;
        }
    }
public function setQueryString($query_string = [])
    {
        if (!is_array($query_string) && is_string($query_string)) {
            $query_string = parse_str($query_string);
        }
        if (count($query_string) == 0) {
            $this->query_string = [];
        } else {
            $this->query_string = $query_string;
        }
    }
public function setQueryString ( $ query_string = [ ] ) { if ( ! is_array ( $ query_string ) && is_string ( $ query_string ) ) { $ query_string = parse_str ( $ query_string ) ; } if ( count ( $ query_string ) == 0 ) { $ this -> query_string = [ ] ; } else { $ this -> query_string = $ query_string ; } }
Set query string data
Must be supplied as an array

@param array $query_string The query string to be sent to the target URL

@author: 713uk13m <dev@nguyenanhung.com>
@time  : 10/7/18 01:36
Set query string data Must be supplied as an array