Renderable_integer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A editable() 0 9 1
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\HTML\Renderable;
4
5
use Formularium\Datatype\Datatype_integer;
6
use Formularium\Field;
7
use Formularium\HTMLNode;
8
use Formularium\Validator\Max;
9
use Formularium\Validator\Min;
10
11
class Renderable_integer extends Renderable_number
12
{
13
    public function editable($value, Field $field, HTMLNode $previous): HTMLNode
14
    {
15
        $element = parent::editable($value, $field, $previous);
16
        $input = $element->get('input')[0];
0 ignored issues
show
Unused Code introduced by
The assignment to $input is dead and can be removed.
Loading history...
17
        
18
        /** @var Datatype_integer $datatype */
19
        $datatype = $field->getDatatype();
0 ignored issues
show
Unused Code introduced by
The assignment to $datatype is dead and can be removed.
Loading history...
20
    
21
        return $element;
22
    }
23
}
24