Nip_Form_Renderer_Elements_Number   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getElementAttribs() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
class Nip_Form_Renderer_Elements_Number extends Nip_Form_Renderer_Elements_Input
6
{
7
8
    /**
9
     * @return array
10
     */
11
    public function getElementAttribs()
12
    {
13
        $attribs = parent::getElementAttribs();
14
        $attribs[] = 'step';
15
        $attribs[] = 'min';
16
        $attribs[] = 'max';
17
18
        return $attribs;
19
    }
20
}
21