Completed
Push — master ( 1f0ecb...bcc29d )
by Ivan
04:21
created

Textarea   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setValue() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace SP\Crawler\Element;
4
5
/**
6
 * @author    Ivan Kerin <[email protected]>
7
 * @copyright 2015, Clippings Ltd.
8
 * @license   http://spdx.org/licenses/BSD-3-Clause
9
 */
10
class Textarea extends AbstractElement implements InputInterface
11
{
12
    /**
13
     * @param string $value
14
     */
15 1
    public function setValue($value)
16
    {
17 1
        $this->getElement()->nodeValue = $value;
18 1
    }
19
20
    /**
21
     * @return string
22
     */
23 1
    public function getValue()
24
    {
25 1
        return $this->getElement()->textContent;
26
    }
27
}
28