Passed
Pull Request — master (#87)
by Dmitriy
03:39 queued 59s
created

Response   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Infrastructure\IO\Http\Blog\GetView\Response;
6
7
use OpenApi\Annotations as OA;
8
9
/**
10
 * @OA\Schema(
11
 *      schema="BlogViewPost",
12
 *      @OA\Property(example="100", property="id", format="int"),
13
 *      @OA\Property(example="Title", property="title", format="string"),
14
 *      @OA\Property(example="Text", property="content", format="string"),
15
 * )
16
 */
17
final class Response
18
{
19 1
    public function __construct(
20
        public $id,
21
        public $title,
22
        public $content,
23
    ) {
24 1
    }
25
}
26