Completed
Push — master ( cc978d...2ede8c )
by John
04:53 queued 02:18
created

MemcachedHealthIndicator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Actuator\Health\Indicator;
4
5
/**
6
 * Simple implementation of a HealthIndicator returning status information for
7
 * Memcached in-memory data stores.
8
 *
9
 * @package Actuator\Health\Indicator
10
 */
11
class MemcachedHealthIndicator extends BaseMemcacheHealthIndicator
12
{
13
    /**
14
     * MemcacheHealthIndicator constructor.
15
     * @param \Memcached $memcached
16
     */
17 9
    public function __construct(\Memcached $memcached)
18
    {
19 9
        assert(!is_null($memcached), 'Memcached must not be null');
20
21 9
        $this->memcacheInstance = $memcached;
22 9
    }
23
}
24