scratch – Blame information for rev 87
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
87 | office | 1 | <?php |
2 | |||
3 | namespace GuzzleHttp\Adapter; |
||
4 | |||
5 | use GuzzleHttp\ClientInterface; |
||
6 | use GuzzleHttp\Message\RequestInterface; |
||
7 | use GuzzleHttp\Message\ResponseInterface; |
||
8 | |||
9 | class Transaction implements TransactionInterface |
||
10 | { |
||
11 | /** @var ClientInterface */ |
||
12 | private $client; |
||
13 | /** @var RequestInterface */ |
||
14 | private $request; |
||
15 | /** @var ResponseInterface */ |
||
16 | private $response; |
||
17 | |||
18 | /** |
||
19 | * @param ClientInterface $client Client that is used to send the requests |
||
20 | * @param RequestInterface $request |
||
21 | */ |
||
22 | public function __construct( |
||
23 | ClientInterface $client, |
||
24 | RequestInterface $request |
||
25 | ) { |
||
26 | $this->client = $client; |
||
27 | $this->request = $request; |
||
28 | } |
||
29 | |||
30 | public function getRequest() |
||
31 | { |
||
32 | return $this->request; |
||
33 | } |
||
34 | |||
35 | public function getResponse() |
||
36 | { |
||
37 | return $this->response; |
||
38 | } |
||
39 | |||
40 | public function setResponse(ResponseInterface $response) |
||
41 | { |
||
42 | $this->response = $response; |
||
43 | } |
||
44 | |||
45 | public function getClient() |
||
46 | { |
||
47 | return $this->client; |
||
48 | } |
||
49 | } |