mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-06 20:48:42 +00:00
Implement tests
This commit is contained in:
parent
99c3767b62
commit
48f30ff967
|
|
@ -22,7 +22,7 @@ namespace Modules\Media\Models;
|
|||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Media
|
||||
class Media implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -332,6 +332,9 @@ class Media
|
|||
$this->versioned = $versioned;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
|
|
@ -342,4 +345,12 @@ class Media
|
|||
'size' => $this->size,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user