36 lines
647 B
PHP
36 lines
647 B
PHP
<?php
|
|
namespace App\CMS\Contracts\Widgets;
|
|
|
|
use App\Models\Widgets\Widget;
|
|
|
|
interface PublicWidget
|
|
{
|
|
/**
|
|
* Name getter
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getName();
|
|
|
|
/**
|
|
* Getter for description
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getDescription();
|
|
|
|
/**
|
|
* Getter for presenter/renderer of this widget
|
|
*
|
|
* @return WidgetRenderer
|
|
*/
|
|
public static function getPresenter();
|
|
|
|
/**
|
|
* @param Widget $widget
|
|
* @param \stdClass $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public static function save(Widget $widget, \stdClass $data);
|
|
} |