Passed
Push — 1.0.0 ( 308939...f58402 )
by Alex
01:34
created

CurrencyConfig::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace StraTDeS\VO;
4
5
class CurrencyConfig
6
{
7
    private int $iso;
8
    private int $decimals;
9
10 6
    public function __construct(int $iso, int $decimals)
11
    {
12 6
        $this->iso = $iso;
13 6
        $this->decimals = $decimals;
14 6
    }
15
16 6
    public function iso(): int
17
    {
18 6
        return $this->iso;
19
    }
20
21 6
    public function decimals(): int
22
    {
23 6
        return $this->decimals;
24
    }
25
}
26