public function activate(): void { if ($this->isActive()) { throw new \DomainException('Article is already active.'); } $this->status = self::STATUS_ACTIVE; }