mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
Added EncodedImage::mimetype()
This commit is contained in:
@@ -15,6 +15,11 @@ class EncodedImage
|
|||||||
$this->mimetype = $mimetype;
|
$this->mimetype = $mimetype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function mimetype(): string
|
||||||
|
{
|
||||||
|
return $this->mimetype;
|
||||||
|
}
|
||||||
|
|
||||||
public function save(string $filepath): void
|
public function save(string $filepath): void
|
||||||
{
|
{
|
||||||
$saved = @file_put_contents($filepath, (string) $this);
|
$saved = @file_put_contents($filepath, (string) $this);
|
||||||
|
Reference in New Issue
Block a user