Example #1
0
 /**
  * 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());
 }
Example #2
0
 /**
  * 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;
 }