CommerceGuys\Zone\Model\ZoneMemberZone::getZone PHP 메소드

getZone() 공개 메소드

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

Usage Example

예제 #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());
 }