Documentation

PhoneCodeService extends Injectable
in package

Table of Contents

Properties

$phoneCodeRepository  : PhoneCodeRepository
$request  : Request

Methods

__construct()  : mixed
getCountries()  : array<string|int, mixed>
Return CountryMapper object from repositry
getCountry()  : array<string|int, mixed>
Return CountryMapper object from repositry
getEuPhoneCodes()  : array<string|int, mixed>
getPhoneCodes()  : array<string|int, mixed>
getPhoneCodesByCustomCountryList()  : array<string|int, mixed>|null
custom country list in config

Properties

Methods

getCountries()

Return CountryMapper object from repositry

public getCountries() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCountry()

Return CountryMapper object from repositry

public getCountry(int $countryId) : array<string|int, mixed>
Parameters
$countryId : int

Country identification

Tags
throws
CountryNotFoundException

if the country not found

Return values
array<string|int, mixed>

getEuPhoneCodes()

public getEuPhoneCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPhoneCodes()

public getPhoneCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPhoneCodesByCustomCountryList()

custom country list in config

public getPhoneCodesByCustomCountryList() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

        
On this page

Search results