Documentation

CountryRepository
in package

Table of Contents

Methods

findAll()  : array<string|int, Country>|null
Get all Country objects
findByCustomList()  : Simple
findByEuMember()  : array<string|int, Country>|null
findById()  : Country|null
Get Country object by identification
getByEuMembers()  : mixed
getCountriesByCode()  : array<string|int, mixed>|null
getCountryByCode()  : Country|null
getCountryIdByCode()  : int|null

Methods

findAll()

Get all Country objects

public findAll() : array<string|int, Country>|null
Return values
array<string|int, Country>|null

Return Country object

findByCustomList()

public findByCustomList(array<string|int, mixed>|null $countryIds) : Simple
Parameters
$countryIds : array<string|int, mixed>|null
Return values
Simple

findById()

Get Country object by identification

public findById(int $countryId) : Country|null
Parameters
$countryId : int

Country identification

Return values
Country|null

Return Country entity

getCountriesByCode()

public getCountriesByCode(array<string|int, mixed> $codes) : array<string|int, mixed>|null
Parameters
$codes : array<string|int, mixed>
Return values
array<string|int, mixed>|null

getCountryIdByCode()

public getCountryIdByCode(string $two) : int|null
Parameters
$two : string
Return values
int|null

        
On this page

Search results