public function restore() { if ($this->hide_time !== null) { $this->hide_time = null; $this->hide_user_id = null; $this->raise(new PostWasRestored($this)); } return $this; }