Completed
Push — master ( 5e1312...160e4d )
by Denis
01:45
created

Button::__construct()   A

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
class Button extends AbstractElement
7
{
8
    protected $needClose = true;
9
10
    public function __construct(?string $name = null, ?string $value = null)
11
    {
12
        $this->name($name);
13
14
        $this->value($value);
15
16
        parent::__construct();
17
    }
18
19
    public function tag(): void
20
    {
21
        $this->tag = 'button';
22
    }
23
24
}