PHP 클래스 CommerceGuys\Addressing\Subdivision\LazySubdivisionCollection

상속: extends Doctrine\Common\Collections\AbstractLazyCollection
파일 보기 프로젝트 열기: commerceguys/addressing 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$parents array The parents.
$repository CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface The subdivision repository.

공개 메소드들

메소드 설명
__construct ( array $parents ) Creates a LazySubdivisionCollection instance.
getRepository ( ) : CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface Gets the subdivision repository.
setRepository ( CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface $repository ) Sets the subdivision repository.

보호된 메소드들

메소드 설명
doInitialize ( )

메소드 상세

__construct() 공개 메소드

Creates a LazySubdivisionCollection instance.
public __construct ( array $parents )
$parents array The parents (country code, subdivision codes).

doInitialize() 보호된 메소드

protected doInitialize ( )

getRepository() 공개 메소드

Gets the subdivision repository.
public getRepository ( ) : CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface
리턴 CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface The subdivision repository.

setRepository() 공개 메소드

Sets the subdivision repository.
public setRepository ( CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface $repository )
$repository CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface The subdivision repository.

프로퍼티 상세

$parents 보호되어 있는 프로퍼티

The parents.
protected array $parents
리턴 array

$repository 보호되어 있는 프로퍼티

The subdivision repository.
protected SubdivisionRepositoryInterface,CommerceGuys\Addressing\Subdivision $repository
리턴 CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface