/** * Update the conversation's last activity timestamp * * @return void */ public function updateLastActivity() { $this->last_activity = TimeDate::now(); $this->update('last_activity', $this->last_activity->toMysql()); }
/** * Set the timestamp of the match * * @param mixed The match's new timestamp * @return $this */ public function setTimestamp($timestamp) { $this->timestamp = TimeDate::from($timestamp); $this->update("timestamp", $this->timestamp->toMysql(), "s"); return $this; }