/** * * @param Phoursquare_Venue_Tip $tip * @return Phoursquare_Venue_Tip */ public function addTip(Phoursquare_Venue_Tip $tip) { if (!is_null($tip->getId())) { throw new Exception('$tip does already exist!'); } return $this->getService()->addTip($tip, $this); }
/** * * @param Phoursquare_Venue_Tip $tip * @return boolean */ public function markAsDone(Phoursquare_Venue_Tip $tip) { $this->_checkMarking($tid); try { $data = $this->getRequest()->markTipAsDone($tip->getId()); } catch (Exception $e) { throw new Exception('Maybe it is already marked as done?'); } return true; }