Passed
Push — main ( 053125...2aad05 )
by Chema
57s queued 15s
created

Response   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Router\Entities;
6
7
class Response
8
{
9 2
    public function __construct(
10
        private string $body,
11
    ) {
12 2
    }
13
14 2
    public function __toString(): string
15
    {
16 2
        return $this->body;
17
    }
18
}
19