1: <?php
2:
3: namespace Charcoal\Ui\Dashboard;
4:
5: use \InvalidArgumentException;
6:
7:
8: use \Charcoal\Ui\AbstractUiItem;
9: use \Charcoal\Ui\Dashboard\DashboardInterface;
10: use \Charcoal\Ui\Dashboard\DashboardTrait;
11: use \Charcoal\Ui\Layout\LayoutAwareTrait;
12:
13: 14: 15: 16: 17:
18: abstract class AbstractDashboard extends AbstractUiItem implements
19: DashboardInterface
20: {
21: use DashboardTrait;
22: use LayoutAwareTrait;
23:
24: 25: 26: 27: 28:
29: public function __construct($data = null)
30: {
31: $this->setWidgetBuilder($data['widget_builder']);
32:
33:
34: $this->setLayoutBuilder($data['layout_builder']);
35:
36: parent::__construct($data);
37: }
38: }
39: