| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class Check extends CheckAbstract |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var Redis |
||
| 28 | */ |
||
| 29 | private $checker; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $host |
||
| 33 | * @param int $port |
||
| 34 | * @param string|null $auth |
||
| 35 | */ |
||
| 36 | 2 | public function __construct($host = 'localhost', $port = 6379, $auth = null) |
|
| 37 | { |
||
| 38 | 2 | $this->checker = new Redis($host, $port, $auth); |
|
| 39 | 2 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Perform the check. |
||
| 43 | * |
||
| 44 | * @see \ZendDiagnostics\Check\CheckInterface::check() |
||
| 45 | */ |
||
| 46 | 2 | public function check() |
|
| 52 | } |
||
| 53 | } |
||
| 55 |