Esempio n. 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();
     }
 }
Esempio n. 2
0
 /**
  * @return Country
  */
 public function getCountry()
 {
     return $this->region->getCountry();
 }