AuraSqlPagerModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

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