Passed
Pull Request — 1.x (#334)
by Akihito
11:25
created

ResourceOpenContext::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 0
c 1
b 0
f 1
dl 0
loc 5
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\SemanticLog;
6
7
use Koriym\SemanticLogger\AbstractContext;
8
9
final class ResourceOpenContext extends AbstractContext
10
{
11
    /** @psalm-suppress InvalidClassConstantType */
12
    public const TYPE = 'bear_resource_request';
13
14
    /** @psalm-suppress InvalidClassConstantType */
15
    public const SCHEMA_URL = 'https://bearsunday.github.io/BEAR.Resource/schemas/bear-resource-request.json';
16
17
    /** @param array<string, mixed> $query */
18
    public function __construct(
19
        public readonly string $uri,
20
        public readonly string $method,
21
        public readonly array $query,
22
    ) {
23
    }
24
}
25