RepresentationModule::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Sunday\Provide\Representation;
6
7
use BEAR\Resource\JsonRenderer;
8
use BEAR\Resource\RenderInterface;
9
use Override;
10
use Ray\Di\AbstractModule;
11
use Ray\Di\Scope;
12
13
final class RepresentationModule extends AbstractModule
14
{
15
    #[Override]
16
    protected function configure(): void
17 1
    {
18
        $this->bind(RenderInterface::class)->to(JsonRenderer::class)->in(Scope::SINGLETON);
19 1
    }
20
}
21