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

File::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Ngtfkx\Laradeck\FormBuilder\Elements;
4
5
6
class File extends AbstractElement
7
{
8
    public function __construct(?string $name = null)
9
    {
10
        $this->name($name);
11
12
        parent::__construct();
13
    }
14
15
    public function tag(): void
16
    {
17
        $this->tag = 'input type="file"';
18
    }
19
20
}