Completed
Push — master ( 9ef8fc...cc978d )
by John
14:22
created

MemcacheHealthIndicator::doHealthCheck()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 16
Code Lines 10

Duplication

Lines 16
Ratio 100 %

Code Coverage

Tests 10
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 16
loc 16
ccs 10
cts 10
cp 1
rs 9.4285
cc 3
eloc 10
nc 3
nop 1
crap 3
1
<?php
2
3
namespace Actuator\Health\Indicator;
4
5
/**
6
 * Simple implementation of a HealthIndicator returning status information for
7
 * Memcache in-memory data stores.
8
 *
9
 * @package Actuator\Health\Indicator
10
 */
11
class MemcacheHealthIndicator extends BaseMemcacheHealthIndicator
12
{
13
    /**
14
     * MemcacheHealthIndicator constructor.
15
     * @param \Memcache $memcache
16
     */
17
    public function __construct(\Memcache $memcache)
18
    {
19
        assert(!is_null($memcache), 'Memcache must not be null');
20
21
        $this->memcacheInstance = $memcache;
22
    }
23
}
24