setFile method

This commit is contained in:
Yuri Kuznetsov
2024-09-16 17:03:09 +03:00
parent ef97427e6b
commit b055592d2b
@@ -47,6 +47,13 @@ class Document extends Entity
return $this->get('name');
}
public function setFile(?Attachment $file): self
{
$this->relations->set('file', $file);
return $this;
}
public function getFileId(): ?string
{
return $this->get('fileId');