Conditions | 3 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 17 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 11 | public function __construct(Request $request, $domain) |
|
26 | { |
||
27 | 11 | parent::__construct(); |
|
28 | 11 | $this->product('Location'); |
|
29 | 11 | $this->version('2015-06-12'); |
|
30 | 11 | $this->action('DescribeEndpoints'); |
|
31 | 11 | $this->regionId('cn-hangzhou'); |
|
32 | 11 | $this->format('JSON'); |
|
33 | 11 | $this->options['query']['Id'] = $request->realRegionId(); |
|
34 | 11 | $this->options['query']['ServiceCode'] = $request->serviceCode; |
|
35 | 11 | $this->options['query']['Type'] = $request->endpointType; |
|
36 | 11 | $this->client($request->client); |
|
37 | 11 | $this->host($domain); |
|
38 | 11 | if (isset($request->options['timeout'])) { |
|
39 | 11 | $this->timeout($request->options['timeout']); |
|
40 | 11 | } |
|
41 | |||
42 | 11 | if (isset($request->options['connect_timeout'])) { |
|
43 | 11 | $this->connectTimeout($request->options['connect_timeout']); |
|
44 | 11 | } |
|
47 |