AuraSqlPagerModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 9
cts 9
cp 1
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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