Code Duplication    Length = 29-29 lines in 6 locations

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

@@ 17-45 (lines=29) @@
14
/**
15
 * Class ButtonElement.
16
 */
17
class ButtonElement extends AbstractElement
18
{
19
    /** @var string */
20
    protected $type = 'button';
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
    /**
37
     * Resets the object when cloning.
38
     */
39
    public function __clone()
40
    {
41
        parent::__clone();
42
43
        $this->setTabIndex();
44
    }
45
}
46

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

@@ 17-45 (lines=29) @@
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
    /**
37
     * Resets the object when cloning.
38
     */
39
    public function __clone()
40
    {
41
        parent::__clone();
42
43
        $this->setTabIndex();
44
    }
45
}
46

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

@@ 17-45 (lines=29) @@
14
/**
15
 * Class KeygenElement.
16
 */
17
class KeygenElement extends AbstractElement
18
{
19
    /** @var string */
20
    protected $type = 'keygen';
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
    /**
37
     * Resets the object when cloning.
38
     */
39
    public function __clone()
40
    {
41
        parent::__clone();
42
43
        $this->setTabIndex();
44
    }
45
}
46

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

@@ 17-45 (lines=29) @@
14
/**
15
 * Class PasswordElement.
16
 */
17
class PasswordElement extends AbstractElement
18
{
19
    /** @var string */
20
    protected $type = 'password';
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
    /**
37
     * Resets the object when cloning.
38
     */
39
    public function __clone()
40
    {
41
        parent::__clone();
42
43
        $this->setTabIndex();
44
    }
45
}
46

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

@@ 17-45 (lines=29) @@
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
    /**
37
     * Resets the object when cloning.
38
     */
39
    public function __clone()
40
    {
41
        parent::__clone();
42
43
        $this->setTabIndex();
44
    }
45
}
46

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

@@ 17-45 (lines=29) @@
14
/**
15
 * Class TextElement. Same as InputElement with type 'text'.
16
 */
17
class TextElement extends AbstractElement
18
{
19
    /** @var string */
20
    protected $type = 'text';
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
    /**
37
     * Resets the object when cloning.
38
     */
39
    public function __clone()
40
    {
41
        parent::__clone();
42
43
        $this->setTabIndex();
44
    }
45
}
46