| Total Complexity | 8 |
| Total Lines | 44 |
| 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 | public function getSQLDeclaration(array $column, AbstractPlatform $platform): string |
||
| 18 | { |
||
| 19 | return $platform->getIntegerTypeDeclarationSQL($column); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getBindingType(): ParameterType |
||
| 25 | } |
||
| 26 | 2 | ||
| 27 | 1 | public function getName(): string |
|
| 30 | 2 | } |
|
| 31 | |||
| 32 | 1 | /** |
|
| 33 | * @param null|float|int|string $value |
||
| 34 | */ |
||
| 35 | 2 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Money |
|
| 44 | } |
||
| 45 | 1 | ||
| 46 | public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string |
||
| 59 |