Passed
Push — master ( b47fe7...645f8c )
by Chris
29:23
created

AbstractValuableElement   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 25
ccs 0
cts 5
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setValue() 0 5 1
A getValue() 0 3 1
1
<?php
2
3
namespace WebTheory\Saveyour\Field\Abstracts;
4
5
use WebTheory\Html\AbstractHtmlElement;
6
7
abstract class AbstractValuableElement extends AbstractHtmlElement
8
{
9
    /**
10
     * @var mixed
11
     */
12
    protected $value;
13
14
    /**
15
     * @return mixed
16
     */
17
    public function getValue()
18
    {
19
        return $this->value;
20
    }
21
22
    /**
23
     * @param mixed  $value
24
     *
25
     * @return $this
26
     */
27
    public function setValue($value): AbstractValuableElement
28
    {
29
        $this->value = $value;
30
31
        return $this;
32
    }
33
}
34