| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function __construct(array $configs) |
||
| 16 | { |
||
| 17 | foreach ($configs as $name => $config) { |
||
| 18 | if (isset($config['dsn'])) { |
||
| 19 | $this->parseDsn($config); |
||
| 20 | } |
||
| 21 | |||
| 22 | $check = new Redis($config['host'], $config['port'], $config['password']); |
||
| 23 | $check->setLabel(\sprintf('Redis "%s"', $name)); |
||
| 24 | |||
| 25 | $this->checks[\sprintf('redis_%s', $name)] = $check; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 56 |