PHP Class CommerceGuys\Addressing\Subdivision\LazySubdivisionCollection

Inheritance: extends Doctrine\Common\Collections\AbstractLazyCollection
Mostra file Open project: commerceguys/addressing Class Usage Examples

Protected Properties

Property Type Description
$parents array The parents.
$repository CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface The subdivision repository.

Public Methods

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.

Protected Methods

Method Description
doInitialize ( )

Method Details

__construct() public method

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

doInitialize() protected method

protected doInitialize ( )

getRepository() public method

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

setRepository() public method

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

Property Details

$parents protected_oe property

The parents.
protected array $parents
return array

$repository protected_oe property

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