示例#1
0
 /**
  * @param Region $region
  */
 protected function addRegion($region)
 {
     if ($region->getCountry()) {
         $countryId = $region->getCountry()->getId();
         if (!isset($this->addRegions[$countryId])) {
             $this->addRegions[$countryId] = array();
         }
         $this->addRegions[$countryId][] = $region->getId();
     }
 }
示例#2
0
文件: Hotel.php 项目: blab2015/seh
 /**
  * @return Country
  */
 public function getCountry()
 {
     return $this->region->getCountry();
 }