| 1 | <?php |
||
| 5 | class Widget |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Widget name. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $name; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * FQCN of the widget. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $class; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Lists of blade templates. |
||
| 23 | * |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | public $templates = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Widget description. |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | public $description; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Widget constructor. |
||
| 37 | * |
||
| 38 | * @param string $name |
||
| 39 | * @param string $description |
||
| 40 | * @param string $classPath |
||
| 41 | * @param array $templates |
||
| 42 | */ |
||
| 43 | public function __construct($name, $description, $classPath, array $templates) |
||
| 50 | } |
||
| 51 |