Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Xentral\Widgets\SuperSearch\Attachment;
|
||||
|
||||
final class StaticContentAttachment extends AbstractAttachment
|
||||
{
|
||||
/** @var string $content */
|
||||
private $content;
|
||||
|
||||
/**
|
||||
* @param string $content
|
||||
*/
|
||||
public function __construct($content)
|
||||
{
|
||||
$this->content = (string)$content;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return self::TYPE_CONTENT_STATIC;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return [
|
||||
'content' => $this->content,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user