Passed
Push — master ( d26101...1eb4af )
by Gabor
03:11
created

ButtonElement::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * WebHemi.
4
 *
5
 * PHP version 5.6
6
 *
7
 * @copyright 2012 - 2016 Gixx-web (http://www.gixx-web.com)
8
 * @license   https://opensource.org/licenses/MIT The MIT License (MIT)
9
 *
10
 * @link      http://www.gixx-web.com
11
 */
12
namespace WebHemi\Form\Element\Web;
13
14
/**
15
 * Class ButtonElement.
16
 */
17
class ButtonElement extends InputElement
18
{
19
    /** @var string */
20
    protected $type = 'button';
21
22
    /**
23
     * Skip original behaviour: button element does not have value.
24
     *
25
     * @param mixed $value
26
     * @return AbstractElement
27
     */
28 1
    public function setValue($value)
29
    {
30 1
        unset($value);
31 1
        return $this;
32
    }
33
34
    /**
35
     * Skip original behaviour: button element does not have value.
36
     *
37
     * @return mixed
38
     */
39 1
    public function getValue()
40
    {
41 1
        return '';
42
    }
43
}
44