RoundDown::round()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace byrokrat\amount\Rounder;
6
7
/**
8
 * Round towards negative infinity
9
 */
10
class RoundDown implements \byrokrat\amount\Rounder
11
{
12
    use ToolkitConsumer;
13
14 5
    public function round(string $value, int $precision): string
15
    {
16 5
        return $this->toolkit->roundDown($value, $precision);
17
    }
18
}
19