cookie_hash = $cookie_hash; $this->uid = $uid; $this->user_agent = $user_agent; $this->created = $created; $this->last_used = $last_used; } public function recordUse() { $this->last_used = DateTimeFormat::utcNow(); } }