OpenXE/classes/Widgets/SuperSearch/Attachment/AbstractAttachment.php

28 lines
477 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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(),
];
}
}