Hidden   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A set() 0 4 1
1
<?php
2
3
namespace kalanis\kw_forms\Controls;
4
5
6
/**
7
 * Class Hidden
8
 * @package kalanis\kw_forms\Controls
9
 * Form element for hidden entry
10
 */
11
class Hidden extends AControl
12
{
13
    protected string $templateError = '';
14
    protected string $templateLabel = '';
15
    protected string $templateInput = '<input type="hidden" value="%1$s"%2$s />';
16
17 4
    public function set(string $alias, ?string $value = null): self
18
    {
19 4
        $this->setEntry($alias, $value);
20 4
        return $this;
21
    }
22
}
23