Value::setContent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 1
1
<?php
2
3
namespace kalanis\RemoteRequest\Protocols\Http\Query;
4
5
6
/**
7
 * Class Value
8
 * @package kalanis\RemoteRequest\Protocols\Http\Query
9
 * Single item for query
10
 */
11
class Value
12
{
13
    /** @var mixed */
14
    protected $content = '';
15
16
    /**
17
     * @param mixed $content
18
     */
19 12
    public function __construct($content = '')
20
    {
21 12
        $this->content = $content;
22
    }
23
24
    /**
25
     * @param mixed $content
26
     * @return $this
27
     */
28 2
    public function setContent($content): self
29
    {
30 2
        $this->content = $content;
31 2
        return $this;
32
    }
33
34 10
    public function getContent(): string
35
    {
36 10
        return strval($this->content);
37
    }
38
}
39