TypeSystemServiceExtension::getStatus()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of Railt package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Railt\SDL;
13
14
use Railt\Foundation\Extension\Status;
0 ignored issues
show
Bug introduced by
The type Railt\Foundation\Extension\Status 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...
15
use Railt\Foundation\Extension\Extension;
0 ignored issues
show
Bug introduced by
The type Railt\Foundation\Extension\Extension 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...
16
17
/**
18
 * Class TypeSystemServiceExtension
19
 */
20
class TypeSystemServiceExtension extends Extension
21
{
22
    /**
23
     * @return void
24
     */
25
    public function register(): void
26
    {
27
        $this->app->register(
28
            CompilerInterface::class,
29
            fn () =>
30
            new Compiler(Compiler::SPEC_RAILT)
0 ignored issues
show
Bug introduced by
The constant Railt\SDL\Compiler::SPEC_RAILT was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
31
        );
32
    }
33
34
    /**
35
     * {@inheritDoc}
36
     */
37
    public function getName(): string
38
    {
39
        return 'GraphQL TypeSystem';
40
    }
41
42
    /**
43
     * {@inheritDoc}
44
     */
45
    public function getStatus(): string
46
    {
47
        return Status::STABLE;
48
    }
49
50
    /**
51
     * {@inheritDoc}
52
     */
53
    public function getVersion(): string
54
    {
55
        return $this->app->getVersion();
56
    }
57
58
    /**
59
     * {@inheritDoc}
60
     */
61
    public function getDescription(): string
62
    {
63
        return 'Registers the GraphQL TypeSystem (SDL) parser and compiler';
64
    }
65
}
66