Passed
Push — 5.0.0 ( 337324...37581b )
by Fèvre
05:07
created

Modal   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 3 1
A __construct() 0 12 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Xetaravel\View\Components;
6
7
use Closure;
8
use Illuminate\Contracts\View\View;
9
use Illuminate\View\Component;
10
11
class Modal extends Component
12
{
13
    public function __construct(
14
        public ?string $id = '',
15
        public ?string $title = null,
16
        public ?string $subtitle = null,
17
        public ?string $boxClass = null,
18
        public ?bool $separator = false,
19
        public ?bool $persistent = false,
20
        public ?bool $withoutTrapFocus = false,
21
22
        // Slots
23
        public ?string $actions = null
24
    ) {
25
        //
26
    }
27
28
    /**
29
     * Get the view / contents that represent the component.
30
     */
31
    public function render(): View|Closure|string
32
    {
33
        return view('components.modal');
34
    }
35
}
36