AuraSqlQueryModule   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 8
c 1
b 0
f 1
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A configure() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule;
6
7
use Aura\SqlQuery\Common\DeleteInterface;
8
use Aura\SqlQuery\Common\InsertInterface;
9
use Aura\SqlQuery\Common\SelectInterface;
10
use Aura\SqlQuery\Common\UpdateInterface;
11
use Override;
12
use Ray\AuraSqlModule\Annotation\AuraSqlQueryConfig;
13
use Ray\Di\AbstractModule;
14
15
final class AuraSqlQueryModule extends AbstractModule
16
{
17
    public function __construct(private readonly string $db, ?AbstractModule $module = null)
18
    {
19
        parent::__construct($module);
20
    }
21
22
    /**
23 13
     * {@inheritDoc}
24
     */
25 13
    #[Override]
26 13
    protected function configure(): void
27 13
    {
28
        $this->bind()->annotatedWith(AuraSqlQueryConfig::class)->toInstance($this->db);
29
        $this->bind(SelectInterface::class)->toProvider(AuraSqlQuerySelectProvider::class);
0 ignored issues
show
Bug introduced by
The type Ray\AuraSqlModule\AuraSqlQuerySelectProvider 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...
30
        $this->bind(InsertInterface::class)->toProvider(AuraSqlQueryInsertProvider::class);
0 ignored issues
show
Bug introduced by
The type Ray\AuraSqlModule\AuraSqlQueryInsertProvider 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...
31
        $this->bind(UpdateInterface::class)->toProvider(AuraSqlQueryUpdateProvider::class);
0 ignored issues
show
Bug introduced by
The type Ray\AuraSqlModule\AuraSqlQueryUpdateProvider 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...
32 13
        $this->bind(DeleteInterface::class)->toProvider(AuraSqlQueryDeleteProvider::class);
0 ignored issues
show
Bug introduced by
The type Ray\AuraSqlModule\AuraSqlQueryDeleteProvider 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...
33
    }
34
}
35