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
SimplefindByEuMember()
public
findByEuMember() : array<string|int, Country>|null
Return values
array<string|int, Country>|nullfindById()
Get Country object by identification
public
findById(int $countryId) : Country|null
Parameters
- $countryId : int
-
Country identification
Return values
Country|null —Return Country entity
getByEuMembers()
public
static getByEuMembers() : mixed
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>|nullgetCountryByCode()
public
getCountryByCode(string $two) : Country|null
Parameters
- $two : string
Return values
Country|nullgetCountryIdByCode()
public
getCountryIdByCode(string $two) : int|null
Parameters
- $two : string