public function getClient()
    {
        $options = [
            'base_uri' => $this->base_url . 'rest/api/',
            'auth' => [$this->user, $this->pass],
        ];

        return new Client($options);
    }
public function getClient()
    {
        $options = [
            'base_uri' => $this->base_url . 'rest/api/',
            'auth' => [$this->user, $this->pass],
        ];

        return new Client($options);
    }
public function getClient ( ) { $ options = [ 'base_uri' => $ this -> base_url . 'rest/api/' , 'auth' => [ $ this -> user , $ this -> pass ] , ] ; return new Client ( $ options ) ; }
This method is public due to test purposes
@return Client
This method is public due to test purposes