diff --git a/Entity/UploadedFile.php b/Entity/UploadedFile.php index 55038e651199f533658430013bec43846c542367..d853fdfc203801c9b2a52263d5f32f400487b126 100644 --- a/Entity/UploadedFile.php +++ b/Entity/UploadedFile.php @@ -252,7 +252,7 @@ class UploadedFile /** * Get createdAt * - * @return \datettime + * @return \DateTime */ public function getCreatedAt() { @@ -359,4 +359,21 @@ class UploadedFile $stream->open(new StreamMode($mode)); return $stream; } + + /** + * + * @return string + */ + public function getContent() + { + return $this->filesystem->read($this->getPath()); + } + + /** + * @return \DateTime + */ + public function getLastModified() + { + return new \DateTime(sprintf('@%d', $this->filesystem->mtime($this->getPath()))); + } }