Implement tests

This commit is contained in:
Dennis Eichhorn 2018-12-16 11:25:35 +01:00
parent 99c3767b62
commit 48f30ff967

View File

@ -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();
}
}