Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 1 | public function __construct(array $configs) |
|
16 | { |
||
17 | 1 | foreach ($configs as $name => $config) { |
|
18 | 1 | $check = new GuzzleHttpService( |
|
19 | 1 | $config['url'], |
|
20 | 1 | $config['headers'], |
|
21 | 1 | $config['options'], |
|
22 | 1 | $config['status_code'], |
|
23 | 1 | $config['content'], |
|
24 | 1 | null, |
|
25 | 1 | $config['method'], |
|
26 | 1 | $config['body'] |
|
27 | ); |
||
28 | 1 | $check->setLabel(sprintf('Guzzle Http Service "%s"', $name)); |
|
29 | |||
30 | 1 | $this->checks[sprintf('guzzle_http_service_%s', $name)] = $check; |
|
31 | } |
||
32 | 1 | } |
|
33 | |||
39 |