| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 36 | private function getCountryCode(): string |
||
| 37 | { |
||
| 38 | //to prevent issues when using as an archetype, otherwise this gets replaced with the new field property name |
||
| 39 | $property = 'country' . 'Code'; |
||
| 40 | do { |
||
| 41 | $code = $this->generator->$property; |
||
| 42 | } while (in_array($code, self::EXCLUDED_CODES, true)); |
||
| 43 | |||
| 44 | return $code; |
||
| 45 | } |
||
| 52 |