AuraSqlPagerModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

1 Method

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