MemcachedHealthIndicator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
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 14
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
class MemcachedHealthIndicator extends BaseMemcacheHealthIndicator
10
{
11
    /**
12
     * MemcacheHealthIndicator constructor.
13
     *
14
     * @param \Memcached $memcached
15
     */
16
    public function __construct(\Memcached $memcached)
17 9
    {
18
        assert(!is_null($memcached), 'Memcached must not be null');
19 9
20
        $this->memcacheInstance = $memcached;
21 9
    }
22
}
23