4
* (c) Copyright 2014 Rackspace US, Inc.
6
* Licensed under the Apache License, Version 2.0 (the "License"); you may
7
* not use this file except in compliance with the License. You may obtain
8
* a copy of the License at
10
* http://www.apache.org/licenses/LICENSE-2.0
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
* License for the specific language governing permissions and limitations
19
namespace OpenStack\Common\Transport\Guzzle;
21
use GuzzleHttp\Message\ResponseInterface as GuzzleResponseInterface;
22
use OpenStack\Common\Transport\ResponseInterface;
25
* This class wraps {@see \GuzzleHttp\Message\ResponseInterface}.
29
class ResponseAdapter extends MessageAdapter implements ResponseInterface
31
public function __construct(GuzzleResponseInterface $guzzleResponse)
33
$this->setMessage($guzzleResponse);
36
public function getStatusCode()
38
return $this->message->getStatusCode();
41
public function getReasonPhrase()
43
return $this->message->getReasonPhrase();
46
public function json()
48
return $this->message->json();
b'\\ No newline at end of file'