Revert archive

This commit is contained in:
fogelito 2024-06-09 19:25:49 +03:00
parent 25b661b908
commit b23f7b0725

View file

@ -10,6 +10,7 @@ class Migration extends Event
{
protected string $type = '';
protected ?Document $migration = null;
protected ?Document $archive = null;
public function __construct(protected Connection $connection)
{
@ -82,6 +83,20 @@ class Migration extends Event
'project' => $this->project,
'user' => $this->user,
'migration' => $this->migration,
'archive' => $this->archive
]);
}
/**
* Sets archive
*
* @param Document $archive
* @return self
*/
public function setArchive(Document $archive): self
{
$this->archive = $archive;
return $this;
}
}