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

AbstractValuableElement::setValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
c 1
b 0
f 0
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