language = $language; $this->country = $country; } /** * * @param Locale $obj * @return boolean */ public function equals($obj) { if (! ($obj instanceof Locale)) { return false; } return ($obj->language == $this->language && $obj->country == $this->country); } /** * * @return string */ public function getLanguage() { return $this->language; } /** * * @return string */ public function getCountry() { return $this->country; } }