From 7e6bfb6ff44777a6ecb5206e474eb53f80cc939c Mon Sep 17 00:00:00 2001 From: Boril Yordanov Date: Thu, 26 Sep 2024 11:26:17 +0300 Subject: [PATCH] Add `StreamFile` --- src/Entity/StreamFile.php | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/Entity/StreamFile.php diff --git a/src/Entity/StreamFile.php b/src/Entity/StreamFile.php new file mode 100644 index 0000000..885a852 --- /dev/null +++ b/src/Entity/StreamFile.php @@ -0,0 +1,57 @@ +get('name'); + } + + public function setName(string $name): self + { + $this->set('name', $name); + return $this; + } + + public function getContent(): StreamInterface + { + return $this->get('content'); + } + + public function setContent(StreamInterface $content): self + { + $this->set('content', $content); + return $this; + } + + public function getContentType(): ?string + { + return $this->get('content_type'); + } + + public function setContentType(string $contentType): self + { + $this->set('content_type', $contentType); + return $this; + } + + public function getSize(): ?int + { + return $this->get('size'); + } + + public function setSize(int $size): self + { + $this->set('size', $size); + return $this; + } +}