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

MultiBindingModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
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