1
0
mirror of https://github.com/OpenXE-org/OpenXE.git synced 2025-01-18 01:31:14 +01:00
2021-05-21 08:49:41 +02:00

28 lines
477 B
PHP

<?php
namespace Xentral\Widgets\SuperSearch\Attachment;
abstract class AbstractAttachment implements AttachmentInterface
{
/**
* @return string
*/
abstract public function getType();
/**
* @return array
*/
abstract public function getData();
/**
* @return array
*/
public function jsonSerialize()
{
return [
'type' => $this->getType(),
'data' => $this->getData(),
];
}
}