Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
24 | public function __invoke() |
||
25 | { |
||
26 | //to prevent issues when using as an archetype, otherwise this gets replaced with the new field property name |
||
27 | $property = 'country' . 'Code'; |
||
28 | do { |
||
29 | $code = $this->generator->$property; |
||
30 | } while (\in_array($code, self::EXCLUDED_CODES, true)); |
||
31 | |||
32 | return $code; |
||
33 | } |
||
35 |