Code Duplication    Length = 19-19 lines in 2 locations

src/WebHemi/Form/Element/Web/FileElement.php 1 location

@@ 17-35 (lines=19) @@
14
/**
15
 * Class FileElement.
16
 */
17
class FileElement extends AbstractElement
18
{
19
    /** @var string */
20
    protected $type = 'file';
21
22
    /**
23
     * SelectElement constructor.
24
     *
25
     * @param string $name
26
     * @param string $label
27
     * @param mixed  $value
28
     */
29
    public function __construct($name = '', $label = '', $value = null)
30
    {
31
        parent::__construct($name, $label, $value);
32
33
        $this->setTabIndex();
34
    }
35
}
36

src/WebHemi/Form/Element/Web/TextareaElement.php 1 location

@@ 17-35 (lines=19) @@
14
/**
15
 * Class TextareaElement.
16
 */
17
class TextareaElement extends AbstractElement
18
{
19
    /** @var string */
20
    protected $type = 'textarea';
21
22
    /**
23
     * SelectElement constructor.
24
     *
25
     * @param string $name
26
     * @param string $label
27
     * @param mixed  $value
28
     */
29
    public function __construct($name = '', $label = '', $value = null)
30
    {
31
        parent::__construct($name, $label, $value);
32
33
        $this->setTabIndex();
34
    }
35
}
36