| 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 |
||
| 14 | public function convertToPHPValue( mixed $value, AbstractPlatform $platform ): DomainAddressType { |
||
| 15 | return match ( $value ) { |
||
| 16 | 'person' => DomainAddressType::Person, |
||
| 17 | 'company' => DomainAddressType::Company, |
||
| 18 | default => throw new \InvalidArgumentException( |
||
| 19 | "Could not convert address type string ({$value}) to enum" |
||
| 20 | ), |
||
| 43 |