Property | Type | Description | |
---|---|---|---|
$parents | array | The parents. | |
$repository | CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface | The subdivision repository. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
doInitialize ( ) |
public __construct ( array $parents ) | ||
$parents | array | The parents (country code, subdivision codes). |
public getRepository ( ) : CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface | ||
return | CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface | The subdivision repository. |
public setRepository ( CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface $repository ) | ||
$repository | CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface | The subdivision repository. |