FormElementFile   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Alfs18\User\HTMLForm;
4
// namespace Anax\HTMLForm;
5
6
use Anax\HTMLForm\FormElementInput;
7
8
/**
9
 * Form element
10
 */
11
class FormElementFile extends FormElementInput
12
{
13
    /**
14
     * Constructor
15
     *
16
     * @param string $name       of the element.
17
     * @param array  $attributes to set to the element. Default is an empty
18
     *                           array.
19
     */
20
    public function __construct($name, $attributes = [])
21
    {
22
        parent::__construct($name, $attributes);
23
        $this['type'] = 'file';
24
        $this->UseNameAsDefaultLabel();
25
    }
26
}
27