From e643de053b7bd20643afcd19199a819e1bd64f17 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 28 Nov 2021 09:45:17 +0100 Subject: [PATCH] Added EncodedImage::mimetype() --- src/EncodedImage.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/EncodedImage.php b/src/EncodedImage.php index 7244048c..7b0858f9 100644 --- a/src/EncodedImage.php +++ b/src/EncodedImage.php @@ -15,6 +15,11 @@ class EncodedImage $this->mimetype = $mimetype; } + public function mimetype(): string + { + return $this->mimetype; + } + public function save(string $filepath): void { $saved = @file_put_contents($filepath, (string) $this);