mirror of
https://github.com/Intervention/image.git
synced 2025-08-18 19:51:22 +02:00
Added EncodedImage::toString()
This commit is contained in:
@@ -33,8 +33,13 @@ class EncodedImage
|
|||||||
return sprintf('data:%s;base64,%s', $this->mimetype, base64_encode($this->data));
|
return sprintf('data:%s;base64,%s', $this->mimetype, base64_encode($this->data));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __toString(): string
|
public function toString(): string
|
||||||
{
|
{
|
||||||
return $this->data;
|
return $this->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __toString(): string
|
||||||
|
{
|
||||||
|
return $this->toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user