FormInputGroup   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
1
<?php
2
3
namespace ProtoneMedia\LaravelFormComponents\Components;
4
5
class FormInputGroup extends Component
6
{
7
    use HandlesValidationErrors;
8
9
    public string $name;
10
    public string $label;
11
12
    /**
13
     * Create a new component instance.
14
     *
15
     * @return void
16
     */
17
    public function __construct(string $name = '', string $label = '', bool $showErrors = true)
18
    {
19
        $this->name       = $name;
20
        $this->label      = $label;
21
        $this->showErrors = $name && $showErrors;
22
    }
23
}
24