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

ThemeToggle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 3 1
A __construct() 0 3 1
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