_id = $id; return $this; } /** * @return int */ public function getId() { return $this->_id; } /** * @param string $link * @return \AdService\Ad */ public function setLink($link) { $this->_link = $link; return $this; } /** * @return string */ public function getLink() { return $this->_link; } /** * @param string $link * @return \AdService\Ad */ public function setLinkMobile($link) { $this->_link_mobile = $link; return $this; } /** * @return string */ public function getLinkMobile() { return $this->_link_mobile; } /** * @param string $title * @return \AdService\Ad */ public function setTitle($title) { $this->_title = $title; return $this; } /** * @return string */ public function getTitle() { return $this->_title; } /** * @param string $description * @return \AdService\Ad */ public function setDescription($description) { $this->_description = $description; return $this; } /** * @return string */ public function getDescription() { return $this->_description; } /** * @param int $price * @return \AdService\Ad */ public function setPrice($price) { // $this->_price = (int) preg_replace('/[^0-9]*/', '', $price); $this->_price = $price; return $this; } /** * @return int */ public function getPrice() { return $this->_price; } /** * @param string $currency * @return Ad */ public function setCurrency($currency) { $this->_currency = $currency; return $this; } /** * @return string */ public function getCurrency() { return $this->_currency; } /** * @param Zend_Date $date * @return \AdService\Ad */ public function setDate($date) { $this->_date = $date; return $this; } /** * @return string */ public function getDate() { return $this->_date; } /** * @param string $category * @return \AdService\Ad */ public function setCategory($category) { $this->_category = $category; return $this; } /** * @return string */ public function getCategory() { return $this->_category; } /** * @param string $county * @return \AdService\Ad */ public function setCountry($county) { $this->_country = $county; return $this; } /** * @return string */ public function getCountry() { return $this->_country; } /** * @param string $city * @return \AdService\Ad */ public function setCity($city) { $this->_city = $city; return $this; } /** * @return string */ public function getCity() { return $this->_city; } /** * @param bool $professional * @return \AdService\Ad */ public function setProfessional($professional) { $this->_professional = $professional; return $this; } /** * @return bool */ public function getProfessional() { return $this->_professional; } /** * @param string $thumbail * @return \AdService\Ad */ public function setThumbnailLink($thumbail) { $this->_thumbnail_link = $thumbail; return $this; } /** * @return string */ public function getThumbnailLink() { return $this->_thumbnail_link; } /** * @param bool $urgent * @return \AdService\Ad */ public function setUrgent($urgent) { $this->_urgent = (bool)$urgent; return $this; } /** * @return bool */ public function getUrgent() { return $this->_urgent; } }