AbstractResponse::setContent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WebServCo\Framework;
6
7
abstract class AbstractResponse
8
{
9
    protected string $content;
10
11
    protected int $statusCode;
12
13
    public function getContent(): string
14
    {
15
        return $this->content;
16
    }
17
18
    public function getStatus(): int
19
    {
20
        return $this->statusCode;
21
    }
22
23
    public function setContent(string $content): bool
24
    {
25
        $this->content = $content;
26
        return true;
27
    }
28
}
29