mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +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(),
|
|
];
|
|
}
|
|
}
|