mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-15 14:48:40 +00:00
Fixing json serialization and reporter
This commit is contained in:
parent
1d8f4fe292
commit
1823c98f30
|
|
@ -136,12 +136,12 @@ class DrawImage implements ArrayableInterface, \JsonSerializable
|
||||||
|
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return $this->jsonSerialize();
|
return json_encode($this->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
return json_encode($this->toArray());
|
return $this->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function fromMedia(Media $media)
|
public static function fromMedia(Media $media)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user