public function reopen() { $this->project->setArchivedAt(null); if ($this->project->getArchivedAt() && $this->project->isOpen()) { $archiver = new ProjectArchiver($this->project); $archiver->cancelArchiving(); } else { $this->project->sendToQueue(); $this->project->sentToEmailJob(); } }
public function archive(DateTime $date = null) { $archiver = new ProjectArchiver($this); $archiver->archive($date); }