Passed
Pull Request — 1.x (#346)
by Akihito
03:04 queued 01:38
created

DataLoaderModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\Module;
6
7
use BEAR\Resource\DataLoader\DataLoader;
8
use Override;
9
use Ray\Di\AbstractModule;
10
11
/**
12
 * Provides DataLoader support for Crawl N+1 problem resolution
13
 *
14
 * Install this module to enable DataLoader functionality that batches
15
 * multiple resource requests into a single operation during link crawling.
16
 *
17
 * @codeCoverageIgnore
18
 */
19
final class DataLoaderModule extends AbstractModule
20
{
21
    #[Override]
22
    protected function configure(): void
23
    {
24
        $this->bind(DataLoader::class);
25
    }
26
}
27