Client::sum()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 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