Completed
Push — master ( c091a3...52a46f )
by Petrică
02:24
created

MemoryTotalGauge   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 10 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Petrica
5
 * Date: 3/24/2016
6
 * Time: 1:17
7
 */
8
namespace Petrica\StatsdSystem\Gauge;
9
10
class MemoryTotalGauge extends AbstractMemoryGauge
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function getValue()
16
    {
17
        $info = $this->getSystemMemoryInfo();
18
19
        if (isset($info['MemTotal'])) {
20
            return $info['MemTotal'];
21
        }
22
23
        return false;
24
    }
25
}
26