public function equals(Pap_Tracking_Cookie_ClickData $clickData) { return ( $this->getBannerId() == $clickData->getBannerId() && $this->getChannelId() == $clickData->getChannelId() && $this->getTimestamp() == $clickData->getTimestamp()); }
protected function getDateVisit(Pap_Tracking_Cookie_ClickData $clickCookie) { if ($clickCookie->getTimestamp() != null) { return Gpf_Common_DateUtils::getDateTime($clickCookie->getTimestamp()); } if ($this->lastClickCookie->getTimestamp() != null) { return Gpf_Common_DateUtils::getDateTime($this->lastClickCookie->getTimestamp()); } return Gpf_Common_DateUtils::now(); }