AuraSqlPagerModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule\Pagerfanta;
6
7
use Override;
8
use Pagerfanta\View\DefaultView;
9
use Pagerfanta\View\Template\DefaultTemplate;
10
use Pagerfanta\View\Template\TemplateInterface;
11
use Pagerfanta\View\ViewInterface;
12
use Ray\AuraSqlModule\Annotation\PagerViewOption;
13
use Ray\Di\AbstractModule;
14
15
final class AuraSqlPagerModule extends AbstractModule
16
{
17
    /**
18
     * {@inheritDoc}
19
     */
20
    #[Override]
21
    protected function configure(): void
22
    {
23
        $this->bind(ViewInterface::class)->to(DefaultView::class);
24
        $this->bind(TemplateInterface::class)->to(DefaultTemplate::class);
25
        $this->bind(AuraSqlPagerInterface::class)->to(AuraSqlPager::class);
26
        $this->bind(AuraSqlPagerFactoryInterface::class)->to(AuraSqlPagerFactory::class);
27
        $this->bind(AuraSqlQueryPagerFactoryInterface::class)->to(AuraSqlQueryPagerFactory::class);
28
        $this->bind(AuraSqlQueryPagerInterface::class)->to(AuraSqlQueryPager::class);
29
        $this->bind('')->annotatedWith(PagerViewOption::class)->toInstance([]);
30
    }
31
}
32