PHP Class CommerceGuys\Zone\Model\Zone

Can be mapped and used by Doctrine.
Inheritance: implements CommerceGuys\Zone\Model\ZoneEntityInterface
Show file Open project: commerceguys/zone Class Usage Examples

Protected Properties

Property Type Description
$id string Zone id.
$members CommerceGuys\Zone\Model\ZoneMemberEntityInterface[] Zone members.
$name string Zone name.
$priority integer Zone priority.
$scope string Zone scope.

Public Methods

Method Description
__construct ( ) Creates a Zone instance.
__toString ( ) : string Returns the string representation of the zone.
addMember ( CommerceGuys\Zone\Model\ZoneMemberEntityInterface $member )
getId ( )
getMembers ( )
getName ( )
getPriority ( )
getScope ( )
hasMember ( CommerceGuys\Zone\Model\ZoneMemberEntityInterface $member )
hasMembers ( )
match ( CommerceGuys\Addressing\AddressInterface $address )
removeMember ( CommerceGuys\Zone\Model\ZoneMemberEntityInterface $member )
setId ( $id )
setMembers ( Doctrine\Common\Collections\Collection $members )
setName ( $name )
setPriority ( $priority )
setScope ( $scope )

Method Details

__construct() public method

Creates a Zone instance.
public __construct ( )

__toString() public method

Returns the string representation of the zone.
public __toString ( ) : string
return string

addMember() public method

public addMember ( CommerceGuys\Zone\Model\ZoneMemberEntityInterface $member )
$member CommerceGuys\Zone\Model\ZoneMemberEntityInterface

getId() public method

public getId ( )

getMembers() public method

public getMembers ( )

getName() public method

public getName ( )

getPriority() public method

public getPriority ( )

getScope() public method

public getScope ( )

hasMember() public method

public hasMember ( CommerceGuys\Zone\Model\ZoneMemberEntityInterface $member )
$member CommerceGuys\Zone\Model\ZoneMemberEntityInterface

hasMembers() public method

public hasMembers ( )

match() public method

public match ( CommerceGuys\Addressing\AddressInterface $address )
$address CommerceGuys\Addressing\AddressInterface

removeMember() public method

public removeMember ( CommerceGuys\Zone\Model\ZoneMemberEntityInterface $member )
$member CommerceGuys\Zone\Model\ZoneMemberEntityInterface

setId() public method

public setId ( $id )

setMembers() public method

public setMembers ( Doctrine\Common\Collections\Collection $members )
$members Doctrine\Common\Collections\Collection

setName() public method

public setName ( $name )

setPriority() public method

public setPriority ( $priority )

setScope() public method

public setScope ( $scope )

Property Details

$id protected property

Zone id.
protected string $id
return string

$members protected property

Zone members.
protected ZoneMemberEntityInterface[],CommerceGuys\Zone\Model $members
return CommerceGuys\Zone\Model\ZoneMemberEntityInterface[]

$name protected property

Zone name.
protected string $name
return string

$priority protected property

Zone priority.
protected int $priority
return integer

$scope protected property

Zone scope.
protected string $scope
return string