Passed
Pull Request — 1.x (#334)
by Akihito
02:24
created

ResourceOpenContext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\SemanticLog;
6
7
use Koriym\SemanticLogger\AbstractContext;
0 ignored issues
show
Bug introduced by
The type Koriym\SemanticLogger\AbstractContext was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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 = 'file://' . __DIR__ . '/schema/bear-resource-request.json';
16
17
    /**
18
     * @param array<string, mixed> $args
19
     */
20
    public function __construct(
21
        public readonly string $resourceClass,
22
        public readonly string $method,
23
        public readonly array $args,
24
    ) {
25
    }
26
}
27