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