Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function convertToDatabaseValue( mixed $value, AbstractPlatform $platform ): string { |
||
25 | return match ( $value ) { |
||
26 | DomainAddressType::Person => 'person', |
||
27 | DomainAddressType::Company => 'company', |
||
28 | default => throw new \InvalidArgumentException( |
||
29 | "Could not convert address type enum ({$value}) to string" |
||
30 | ), |
||
43 |