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

MultiBindingModule::configure()   A

Complexity

Conditions 2
Paths 2

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 2
nc 2
nop 0
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