Passed
Push — 5.0.0 ( 47cf5a...33d584 )
by Fèvre
07:06
created

ThemeToggle::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Xetaravel\View\Components;
4
5
use Closure;
6
use Illuminate\Contracts\View\View;
7
use Illuminate\View\Component;
8
9
class ThemeToggle extends Component
10
{
11
    public string $uuid;
12
13
    public function __construct(
14
    ) {
15
        $this->uuid = md5(serialize($this));
16
    }
17
18
    /**
19
     * Get the view / contents that represent the component.
20
     */
21
    public function render(): View|Closure|string
22
    {
23
        return view('components.theme-toggle');
24
    }
25
}
26