Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A sum() 0 6 1
1
<?php
2
/**
3
 * Class Client
4
 *
5
 * @package Mwesterink\ServiceChecks
6
 * @author  Michel Westerink <[email protected]>
7
 */
8
9
namespace Mwesterink\ServiceChecks;
10
11
use Mwesterink\ServiceChecks\Classes\Calculator;
12
13
class Client
14
{
15
    /**
16
     * Simple sum
17
     *
18
     * @param int $firstDigit
19
     * @param int $secondDigit
20
     *
21
     * @return int
22
     * @throws \Exception
23
     */
24 2
    public function sum($firstDigit, $secondDigit)
25
    {
26 2
        $calculator = new Calculator();
27
28 2
        return $calculator->sum($firstDigit, $secondDigit);
29
    }
30
}
31