CommerceGuys\Zone\Model\ZoneMemberZone::getZone PHP Method

getZone() public method

Gets the zone.
public getZone ( ) : CommerceGuys\Zone\Model\ZoneInterface
return CommerceGuys\Zone\Model\ZoneInterface The zone matched by the zone member.
    public function getZone()
    {
        return $this->zone;
    }

Usage Example

Esempio n. 1
0
 /**
  * @covers ::getZone
  * @covers ::setZone
  */
 public function testZone()
 {
     $zone = $this->getMockBuilder('CommerceGuys\\Zone\\Model\\Zone')->disableOriginalConstructor()->getMock();
     $this->zoneMember->setZone($zone);
     $this->assertEquals($zone, $this->zoneMember->getZone());
 }