public function prepare(array $query)
    {
        $client = new Client;

        $this->client  = $client;
        $this->request = $client->createRequest(
            $this->prepareMethod($query),
            $this->prepareRequestUrl($query),
            [
                'headers' => $this->prepareHeaders($query),
                'body'    => $this->prepareBody($query),
            ]
        );

        return $this;
    }
public function prepare(array $query)
    {
        $client = new Client;

        $this->client  = $client;
        $this->request = $client->createRequest(
            $this->prepareMethod($query),
            $this->prepareRequestUrl($query),
            [
                'headers' => $this->prepareHeaders($query),
                'body'    => $this->prepareBody($query),
            ]
        );

        return $this;
    }
public function prepare ( array $ query ) { $ client = new Client ; $ this -> client = $ client ; $ this -> request = $ client -> createRequest ( $ this -> prepareMethod ( $ query ) , $ this -> prepareRequestUrl ( $ query ) , [ 'headers' => $ this -> prepareHeaders ( $ query ) , 'body' => $ this -> prepareBody ( $ query ) , ] ) ; return $ this ; }
Prepare a new request for execution.

@param  array  $query
@return self
Prepare a new request for execution .