Completed
Branch master (d39ff3)
by Pierre-Henry
32:32
created

Color::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 9.4285
1
<?php
2
/**
3
 * I made changes in this file (by Pierre-Henry SORIA).
4
 */
5
6
namespace PFBC\Element;
7
8
class Color extends Textbox
9
{
10
    public function render()
11
    {
12
        $this->attributes['type'] = 'color';
13
        $this->validation[] = new \PFBC\Validation\HexColor;
14
        parent::render();
15
    }
16
}
17