Total Complexity | 7 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | abstract class AbstractMoneyType extends Type |
||
14 | { |
||
15 | abstract protected function createMoney(string $value): Money; |
||
16 | |||
17 | 1 | public function getSQLDeclaration(array $column, AbstractPlatform $platform): string |
|
18 | { |
||
19 | 1 | return $platform->getIntegerTypeDeclarationSQL($column); |
|
20 | } |
||
21 | |||
22 | public function getBindingType(): ParameterType |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param null|float|int|string $value |
||
29 | */ |
||
30 | 2 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Money |
|
39 | } |
||
40 | |||
41 | 2 | public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string |
|
54 |