BaseSubmitElement::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Ngtfkx\Laradeck\FormBuilder\Elements;
4
5
6
abstract class BaseSubmitElement extends AbstractElement
7
{
8
    public function __construct(?string $name = null, ?string $value = null)
9
    {
10
        parent::__construct();
11
12
        $this->name($name);
13
14
        $this->value($value);
15
    }
16
}