| 1 | <?php namespace Anomaly\DashboardModule\Dashboard; |
||
| 16 | class DashboardModel extends DashboardDashboardsEntryModel implements DashboardInterface |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get the slug. |
||
| 21 | * |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function getSlug() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the name. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getName() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the allowed roles. |
||
| 41 | * |
||
| 42 | * @return RoleCollection |
||
| 43 | */ |
||
| 44 | public function getAllowedRoles() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get the related widgets. |
||
| 51 | * |
||
| 52 | * @return \Anomaly\Streams\Platform\Entry\EntryPresenter|mixed |
||
| 53 | */ |
||
| 54 | public function getWidgets() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Return the widget relation. |
||
| 61 | * |
||
| 62 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 63 | */ |
||
| 64 | public function widgets() |
||
| 68 | } |
||
| 69 |