AbstractResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
c 0
b 0
f 0
dl 0
loc 20
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getContent() 0 3 1
A getStatus() 0 3 1
A setContent() 0 4 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