Passed
Push — 5.0.0 ( ae03fe...9fcb89 )
by Fèvre
05:56
created

Form::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 6
rs 10
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 Form extends Component
10
{
11
    /**
12
     * Create a new component instance.
13
     */
14
    public function __construct(
15
16
        // Slots
17
        public mixed $actions = null,
18
        public ?bool $noSeparator = false,
19
    ) {
20
        //
21
    }
22
23
    /**
24
     * Get the view / contents that represent the component.
25
     */
26
    public function render(): View|Closure|string
27
    {
28
        return view('components.form');
29
    }
30
}
31