PHP 인터페이스 CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface

파일 보기 프로젝트 열기: commerceguys/addressing 0 사용 예제들

공개 메소드들

메소드 설명
get ( string $code, array $parents ) : Subdivision | null Returns a subdivision instance matching the provided code and parents.
getAll ( array $parents ) : Subdivision[] Returns all subdivision instances for the provided parents.
getList ( array $parents, string $locale = null ) : array Returns a list of subdivisions for the provided parents.

메소드 상세

get() 공개 메소드

Returns a subdivision instance matching the provided code and parents.
public get ( string $code, array $parents ) : Subdivision | null
$code string The subdivision code.
$parents array The parents (country code, subdivision codes).
리턴 Subdivision | null The subdivision instance, if found.

getAll() 공개 메소드

Returns all subdivision instances for the provided parents.
public getAll ( array $parents ) : Subdivision[]
$parents array The parents (country code, subdivision codes).
리턴 Subdivision[] An array of subdivision instances.

getList() 공개 메소드

Returns a list of subdivisions for the provided parents.
public getList ( array $parents, string $locale = null ) : array
$parents array The parents (country code, subdivision codes).
$locale string The locale (e.g. fr-FR).
리턴 array An array of subdivision names, keyed by code.