Completed
Push — 2.x ( 5c5bb8...ae2cb5 )
by Akihito
20s queued 13s
created

MultiBindingModule   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
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 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di\MultiBinding;
6
7
use Ray\Di\AbstractModule;
8
use Ray\Di\Di\Set;
9
10
use const PHP_VERSION_ID;
11
12
class MultiBindingModule extends AbstractModule
13
{
14
    protected function configure(): void
15
    {
16
        if (PHP_VERSION_ID >= 80000) {
17
            $this->bind(Map::class)->annotatedWith(Set::class)->toProvider(MapProvider::class);
18
        }
19
    }
20
}
21