public function revise($content, User $actor) { if ($this->content !== $content) { $this->content = $content; $this->edit_time = time(); $this->edit_user_id = $actor->id; $this->raise(new PostWasRevised($this)); } return $this; }