1 | <?php |
||
12 | final class Stack |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $client; |
||
18 | |||
19 | /** |
||
20 | * @var Profile[] |
||
21 | */ |
||
22 | private $profiles = []; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $request; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $response; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $failed = false; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $requestTarget; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $requestMethod; |
||
48 | |||
49 | /** |
||
50 | * @param string $client |
||
51 | * @param string $request |
||
52 | */ |
||
53 | 7 | public function __construct($client, $request) |
|
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | 1 | public function getClient() |
|
66 | |||
67 | /** |
||
68 | * @param Profile $profile |
||
69 | */ |
||
70 | 4 | public function addProfile(Profile $profile) |
|
74 | |||
75 | /** |
||
76 | * @return Profile[] |
||
77 | */ |
||
78 | 2 | public function getProfiles() |
|
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | 1 | public function getRequest() |
|
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | 1 | public function getResponse() |
|
98 | |||
99 | /** |
||
100 | * @param string $response |
||
101 | */ |
||
102 | 2 | public function setResponse($response) |
|
106 | |||
107 | /** |
||
108 | * @return bool |
||
109 | */ |
||
110 | public function isFailed() |
||
114 | |||
115 | /** |
||
116 | * @param bool $failed |
||
117 | */ |
||
118 | 1 | public function setFailed($failed) |
|
122 | |||
123 | /** |
||
124 | * @return string |
||
125 | */ |
||
126 | public function getRequestTarget() |
||
130 | |||
131 | /** |
||
132 | * @param string $requestTarget |
||
133 | */ |
||
134 | public function setRequestTarget($requestTarget) |
||
138 | |||
139 | /** |
||
140 | * @return string |
||
141 | */ |
||
142 | public function getRequestMethod() |
||
146 | |||
147 | /** |
||
148 | * @param string $requestMethod |
||
149 | */ |
||
150 | public function setRequestMethod($requestMethod) |
||
154 | } |
||
155 |