| @@ 71-81 (lines=11) @@ | ||
| 68 | * @throws EE_Error |
|
| 69 | * @throws ReflectionException |
|
| 70 | */ |
|
| 71 | public function forLegacyFormInput( |
|
| 72 | array $countries_list = null, |
|
| 73 | EE_Question $question = null, |
|
| 74 | EE_Registration $registration = null, |
|
| 75 | EE_Answer $answer = null |
|
| 76 | ): array { |
|
| 77 | if (! isset($this->country_options[ $this->action ])) { |
|
| 78 | $this->generateLegacyCountryOptions($question, $registration); |
|
| 79 | } |
|
| 80 | return $this->country_options[ $this->action ]; |
|
| 81 | } |
|
| 82 | ||
| 83 | ||
| 84 | /** |
|
| @@ 63-73 (lines=11) @@ | ||
| 60 | * @throws EE_Error |
|
| 61 | * @throws ReflectionException |
|
| 62 | */ |
|
| 63 | public function forLegacyFormInput( |
|
| 64 | array $states_list = null, |
|
| 65 | EE_Question $question = null, |
|
| 66 | EE_Registration $registration = null, |
|
| 67 | EE_Answer $answer = null |
|
| 68 | ): array { |
|
| 69 | if (! isset($this->state_options[ $this->action ])) { |
|
| 70 | $this->generateLegacyStateOptions($question, $registration, $answer); |
|
| 71 | } |
|
| 72 | return $this->state_options[ $this->action ]; |
|
| 73 | } |
|
| 74 | ||
| 75 | ||
| 76 | /** |
|