OpenXE/classes/Widgets/SuperSearch/Attachment/AbstractAttachment.php
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(),
];
}
}