public function publish() { $this->workflowStatus = self::STATUS_PUBLISHED; $this->published = new DateTime(); }