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);