Passed
Pull Request — master (#87)
by Dmitriy
02:45
created

Response::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Infrastructure\IO\Http\User\GetView\Response;
6
7
use OpenApi\Annotations as OA;
8
9
/**
10
 * @OA\Schema(
11
 *      schema="UserViewResponse",
12
 *      @OA\Property(example="UserName", property="login", format="string"),
13
 *      @OA\Property(example="13.12.2020 00:04:20", property="created_at", format="string"),
14
 * )
15
 */
16
final class Response
17
{
18
    public function __construct(
19
        public string $login,
20
        public string $created_at,
21
    ) {
22
    }
23
}
24