getElementAttribs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
cc 1
eloc 5
c 2
b 0
f 2
nc 1
nop 0
dl 0
loc 8
rs 10
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