1 | <?php |
||
21 | class Api extends AbstractDocument |
||
22 | { |
||
23 | /** |
||
24 | * name |
||
25 | * @var string $name |
||
26 | */ |
||
27 | protected $name = null; |
||
28 | |||
29 | /** |
||
30 | * request host |
||
31 | * @var string $requestHost |
||
32 | */ |
||
33 | protected $requestHost = null; |
||
34 | |||
35 | /** |
||
36 | * request path |
||
37 | * @var string $requestPath |
||
38 | */ |
||
39 | protected $requestPath = null; |
||
40 | |||
41 | /** |
||
42 | * strip request path |
||
43 | * @var bool $stripRequestPath |
||
44 | */ |
||
45 | protected $stripRequestPath = false; |
||
46 | |||
47 | /** |
||
48 | * preserve host |
||
49 | * @var bool $preserveHost |
||
50 | */ |
||
51 | protected $preserveHost = false; |
||
52 | |||
53 | /** |
||
54 | * upstream url |
||
55 | * @var string $upstreamUrl |
||
56 | */ |
||
57 | protected $upstreamUrl = null; |
||
58 | |||
59 | /** |
||
60 | * set name |
||
61 | * |
||
62 | * @param string $name |
||
63 | * |
||
64 | * @return this |
||
65 | */ |
||
66 | 1 | public function setName(string $name): self |
|
72 | |||
73 | /** |
||
74 | * get name |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | 1 | public function getName(): string |
|
82 | |||
83 | /** |
||
84 | * set request host |
||
85 | * |
||
86 | * @param string $requestHost |
||
87 | * |
||
88 | * @return this |
||
89 | */ |
||
90 | 1 | public function setRequestHost(string $requestHost): self |
|
96 | |||
97 | /** |
||
98 | * get request host |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | 1 | public function getRequestHost(): string |
|
106 | |||
107 | /** |
||
108 | * set request path |
||
109 | * |
||
110 | * @param string $requestPath |
||
111 | * |
||
112 | * @return this |
||
113 | */ |
||
114 | 1 | public function setRequestPath(string $requestPath): self |
|
120 | |||
121 | /** |
||
122 | * get request path |
||
123 | * |
||
124 | * @return string |
||
125 | */ |
||
126 | 1 | public function getRequestPath(): string |
|
130 | |||
131 | /** |
||
132 | * set strip request path |
||
133 | * |
||
134 | * @param bool $stripRequestPath |
||
135 | * |
||
136 | * @return this |
||
137 | */ |
||
138 | 1 | public function setStripRequestPath(bool $stripRequestPath): self |
|
144 | |||
145 | /** |
||
146 | * get strip request path |
||
147 | * |
||
148 | * @return bool |
||
149 | */ |
||
150 | 1 | public function getStripRequestPath(): bool |
|
154 | |||
155 | /** |
||
156 | * set preserve host |
||
157 | * |
||
158 | * @param bool $preserveHost |
||
159 | * |
||
160 | * @return this |
||
161 | */ |
||
162 | 1 | public function setPreserveHost(bool $preserveHost): self |
|
168 | |||
169 | /** |
||
170 | * get preserve host |
||
171 | * |
||
172 | * @return bool |
||
173 | */ |
||
174 | 1 | public function getPreserveHost(): bool |
|
178 | |||
179 | /** |
||
180 | * set upstream url |
||
181 | * |
||
182 | * @param string $upstreamUrl |
||
183 | * |
||
184 | * @return this |
||
185 | */ |
||
186 | 1 | public function setUpstreamUrl(string $upstreamUrl): self |
|
192 | |||
193 | /** |
||
194 | * get upstream url |
||
195 | * |
||
196 | * @return string |
||
197 | */ |
||
198 | 1 | public function getUpstreamUrl(): string |
|
202 | |||
203 | /** |
||
204 | * get fields |
||
205 | * |
||
206 | * @return array |
||
207 | */ |
||
208 | 1 | protected function getFields(): array |
|
219 | } |
||
220 |