| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 46.15% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class NovaNavigaAdPreview extends Tool |
||
| 11 | { |
||
| 12 | protected string $menuName = 'Naviga ad preview'; |
||
| 13 | protected string $menuIcon = 'photograph'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Perform any tasks that need to happen when the tool is booted. |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public function boot() |
||
| 21 | { |
||
| 22 | Nova::script('nova-naviga-ad-preview', __DIR__ . '/../dist/js/tool.js'); |
||
| 23 | Nova::style('nova-naviga-ad-preview', __DIR__ . '/../dist/css/tool.css'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function menu(Request $request) |
||
| 31 | } |
||
| 32 | |||
| 33 | 2 | public function menuIcon(string $menuIcon): static |
|
| 34 | { |
||
| 35 | 2 | $this->menuIcon = $menuIcon; |
|
| 36 | |||
| 37 | 2 | return $this; |
|
| 38 | } |
||
| 39 | |||
| 40 | 2 | public function menuName(string $menuName): static |
|
| 45 | } |
||
| 46 | } |
||
| 47 |