PhoneCodeService
extends Injectable
in package
Table of Contents
Properties
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
$phoneCodeRepository
private
PhoneCodeRepository
$phoneCodeRepository
$request
private
Request
$request
Methods
__construct()
public
__construct(Request $request, PhoneCodeRepository $phoneCodeRepository) : mixed
Parameters
- $request : Request
- $phoneCodeRepository : PhoneCodeRepository
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
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