MultiBindingModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 5 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
use Ray\Di\Types;
12
13
/**
14
 * @psalm-import-type BindableInterface from Types
15
 */
16
final class MultiBindingModule extends AbstractModule
17
{
18
    protected function configure(): void
19
    {
20
        $this->bind(MultiBindings::class);
21
        $this->bind(ParamReaderInterface::class)->to(ParamReader::class)->in(Scope::SINGLETON);
22
        $this->bind(Map::class)->toProvider(MapProvider::class);
23
    }
24
}
25