mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 07:00:29 +01:00
28 lines
477 B
PHP
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(),
|
|
];
|
|
}
|
|
}
|