Passed
Push — master ( 2d5d0a...7d78c5 )
by Adrien
02:23
created

EURType::createMoney()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ecodev\Felix\DBAL\Types;
6
7
use Money\Money;
8
9
final class EURType extends AbstractMoneyType
10
{
11
    public function getName()
12
    {
13
        return 'EUR';
14
    }
15
16
    protected function createMoney(string $value): Money
17
    {
18
        return Money::EUR($value);
19
    }
20
}
21