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

Search   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A tag() 0 4 1
1
<?php
2
3
namespace Ngtfkx\Laradeck\FormBuilder\Elements;
4
5
6
class Search extends AbstractElement
7
{
8
    public function __construct(?string $name = null, ?string $value = null)
9
    {
10
        $this->name($name);
11
12
        $this->value($value);
13
14
        parent::__construct();
15
    }
16
17
    public function tag(): void
18
    {
19
        $this->tag = 'input type="search"';
20
    }
21
22
}