private function getCountryCodeList($index) { $countryList = []; foreach ($this->countryCodeList as $country) { $countryList[] = $country[$index]; } return $countryList; }