Passed
Push — 2.x ( 447f85...a31879 )
by Akihito
02:41 queued 12s
created

MultiBindingModule::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di\MultiBinding;
6
7
use Koriym\ParamReader\ParamReader;
8
use Koriym\ParamReader\ParamReaderInterface;
9
use Ray\Di\AbstractModule;
10
use Ray\Di\Scope;
11
12
class MultiBindingModule extends AbstractModule
13
{
14
    protected function configure(): void
15
    {
16
        $this->bind(ParamReaderInterface::class)->to(ParamReader::class)->in(Scope::SINGLETON);
17
        $this->bind(Map::class)->toProvider(MapProvider::class);
18
    }
19
}
20